libasynql
3.2.0
Asynchronous MySQL access library for PocketMine plugins.
|
Public Member Functions | |
__construct (string $stage, string $errorMessage, string $query=null, array $args=null) | |
getStage () | |
getErrorMessage () | |
getQuery () | |
getArgs () | |
Data Fields | |
const | STAGE_CONNECT = "CONNECT" |
const | STAGE_PREPARE = "PREPARE" |
const | STAGE_EXECUTE = "EXECUTION" |
const | STAGE_RESPONSE = "RESPONSE" |
Protected Member Functions | |
flattenTrace () | |
Represents a generic error when executing a SQL statement.
Definition at line 40 of file SqlError.php.
__construct | ( | string | $stage, |
string | $errorMessage, | ||
string | $query = null , |
||
array | $args = null |
||
) |
Definition at line 63 of file SqlError.php.
|
protected |
Flattens the trace such that the exception can be serialized
Definition at line 114 of file SqlError.php.
getArgs | ( | ) |
Returns the original arguments passed to the query
Definition at line 105 of file SqlError.php.
getErrorMessage | ( | ) |
getQuery | ( | ) |
getStage | ( | ) |
Returns the stage of query execution at which the error occurred.
Definition at line 78 of file SqlError.php.
const STAGE_CONNECT = "CONNECT" |
Returned by getStage(), indicating that an error occurred while connecting to the database
Definition at line 44 of file SqlError.php.
const STAGE_EXECUTE = "EXECUTION" |
Returned by getStage(), indicating that an error occurred while the SQL backend is executing the query
Definition at line 52 of file SqlError.php.
const STAGE_PREPARE = "PREPARE" |
Returned by getStage(), indicating that an error occurred while preparing the query
Definition at line 48 of file SqlError.php.
const STAGE_RESPONSE = "RESPONSE" |
Returned by getStage(), indicating that an error occurred while handling the response of the query
Definition at line 56 of file SqlError.php.