Server-Exception
This exception type will be thrown by the client when the server returns an error in response to a client request.
The exception code is the HTTP status code as returned by
the server.
In case the server provides additional details
about the error, these details can be queried using the
getDetails() function.
package | ArangoDBClient |
---|---|
since | 0.2 |
inherited_from | \ArangoDBClient\Exception |
__construct(string $message= ''
, integer $code= 0
, \Exception $previous= null
)
string
integer
\Exception
__toString() : string
string
- string representationdisableLogging()
enableLogging()
getDetails() : array
If the server has provided additional details about the error that occurred, they can be queries using the method
array
- array of detailsgetServerCode() : integer
If the server has provided additional details about the error that occurred, this will return the server error code
integer
- server error codegetServerMessage() : string
If the server has provided additional details about the error that occurred, this will return the server error string
string
- server error messagesetDetails(array $details) : void
If the server provides additional details about the error that occurred, they will be put here.
array
$_details
array()
param |
---|
$enableLogging
false
ENTRY_CODE = 'errorNum'
ENTRY_MESSAGE = 'errorMessage'