Thruway\Role\Dealer::processInterruptError PHP 메소드

processInterruptError() 개인적인 메소드

private processInterruptError ( Session $session, Thruway\Message\ErrorMessage $msg )
$session Thruway\Session
$msg Thruway\Message\ErrorMessage
    private function processInterruptError(Session $session, ErrorMessage $msg)
    {
        $call = isset($this->callInterruptIndex[$msg->getRequestId()]) ? $this->callInterruptIndex[$msg->getRequestId()] : null;
        if (!$call) {
            Logger::warning($this, "Interrupt error with no corresponding interrupt index");
            return;
        }
        $errorMsgToCaller = ErrorMessage::createErrorMessageFromMessage($call->getCancelMessage());
        $errorMsgToCaller->setErrorURI($msg->getErrorURI());
        $callerSession = $call->getCallerSession();
        $callerSession->sendMessage($errorMsgToCaller);
        $call->getRegistration()->removeCall($call);
        $this->removeCall($call);
    }