public function normaliseDriverExceptions(\Exception $exception)
    {
        if ($exception instanceof \triagens\ArangoDb\ServerException) {
            return array('message' => $exception->getServerMessage(), 'code' => $exception->getServerCode());
        } else {
            return array('message' => $exception->getMessage(), 'code' => $exception->getCode());
        }
    }
public function normaliseDriverExceptions(\Exception $exception)
    {
        if ($exception instanceof \triagens\ArangoDb\ServerException) {
            return array('message' => $exception->getServerMessage(), 'code' => $exception->getServerCode());
        } else {
            return array('message' => $exception->getMessage(), 'code' => $exception->getCode());
        }
    }
public function normaliseDriverExceptions ( \ Exception $ exception ) { if ( $ exception instanceof \ triagens \ ArangoDb \ ServerException ) { return array ( 'message' => $ exception -> getServerMessage ( ) , 'code' => $ exception -> getServerCode ( ) ) ; } else { return array ( 'message' => $ exception -> getMessage ( ) , 'code' => $ exception -> getCode ( ) ) ; } }
Normalises the exceptions thrown by ArangoDB-PHP.
@param  \Exception $exception
@return array
Normalises the exceptions thrown by ArangoDB - PHP .