PhpOrient\Protocols\Binary\Abstracts\Operation::_readError PHP 메소드

_readError() 보호된 메소드

Read an error from the remote server and turn it into an exception.
protected _readError ( ) : PhpOrient\Exceptions\PhpOrientException
리턴 PhpOrient\Exceptions\PhpOrientException the wrapped exception object.
    protected function _readError()
    {
        $type = $this->_readString();
        $message = $this->_readString();
        $hasMore = $this->_readByte();
        if ($hasMore === 1) {
            $next = $this->_readError();
        } else {
            $javaStackTrace = $this->_readBytes();
        }
        return new PhpOrientException($type . ': ' . $message);
    }