protected _readError ( ) : PhpOrient\Exceptions\PhpOrientException | ||
return | 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);
}