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);
}