DDBI

dbi.ErrorCode

Authors:
The D DBI project

enum ErrorCode ;
The standardized D DBI error code list.

Note that the only things guaranteed not to change are NoError and Unknown.

SocketError
There was a local error initializing the connection.

ProtocolError
Different versions of the connection protocol are in use.

ConnectionError
Invalid username, password, or security settings.

OutOfSync
The statement was valid, but couldn't be executed.

InvalidData
Invalid data was passed to or received from the server.

InvalidQuery
A query could not be successfully parsed.

PermissionsError
You do not have appropriate permission to do that.

NotPrepared
A statement wasn't prepared.

ParamsNotBound
A prepared statement had unbound parameters.

InvalidParams
A prepared statement was given invalid parameters.

NotImplemented
A feature or function couldn't be used.

ServerError
An error occurred on the server.

char[] toString (ErrorCode error);
Convert an ErrorCode to its string form.

Params:
ErrorCode error The ErrorCode in enum format.

Returns:
The string form of error.

Documentation last updated Tue Jan 27 00:09:31 2009