private function processError(Session $session, ErrorMessage $msg)
{
switch ($msg->getErrorMsgCode()) {
case Message::MSG_INVOCATION:
$this->processInvocationError($session, $msg);
break;
case Message::MSG_INTERRUPT:
$this->processInterruptError($session, $msg);
break;
}
}