dbi.Exception
Authors:
The D DBI project
- class
DBIException
: object.Exception;
- This is the exception class used within all of D DBI.
Some functions may also throw different types of exceptions when they access the
standard library, so be sure to also catch Exception in your code.
- this();
- Create a new DBIException.
- this(char[] msg);
- Create a new DBIException.
Params:
char[] msg |
The message to report to the users. |
Throws:
DBIException on invalid arguments.
- ErrorCode
getErrorCode
();
- Get the database's DBI error code.
Returns:
Database's DBI error code.
- long
getSpecificCode
();
- Get the database's numeric error code.
Returns:
Database's numeric error code.
- char[]
getSql
();
- Get the SQL statement that caused the error.
Returns:
SQL statement that caused the error.
|