Class DBException

Description

Database Exception class

This class wraps the DB pear error object so it can be thrown as an exception

Located in /DBErrorToException.class.php (line 750)

Exception
   |
   --DBException
Variable Summary
DBerrorObject $DBerror
Method Summary
DBException __construct (string|DBErrorObject $DBerror)
int|string getDBCode ()
string getDBDebugInfo ()
string getDBUserInfo ()
Variables
DBerrorObject $DBerror (line 756)
  • access: protected
bool $DBerrorObject (line 761)
  • access: protected
Methods
Constructor __construct (line 771)

Constructs the DBexception The constructor accepts either a exception message or a DB pear error. If a DBError object is present it sets the exception message equal to the DBerror message.

  • access: public
DBException __construct (string|DBErrorObject $DBerror)
  • string|DBErrorObject $DBerror
exceptionIsDBErrorObj (line 851)

Gets DBError Obj presence

functions returns whether or not a DBError object was returned as part of the exception.

  • access: public
bool exceptionIsDBErrorObj ()
getDBCode (line 794)

Gets DB Code

function returns the DB code from the DB error object or a string saying that the DB error object was not returned

  • access: public
int|string getDBCode ()
getDBDebugInfo (line 833)

Gets DB Debug Info

function returns the DB debug info from the DB error or a string saying that the DB error object was not returned

  • access: public
string getDBDebugInfo ()
getDBUserInfo (line 813)

Gets DB user info

function returns the DB user info from the DB error or a string saying that the DB error object was not returned

  • access: public
string getDBUserInfo ()

Documentation generated on Wed, 07 Sep 2005 22:55:20 -0400 by phpDocumentor 1.3.0RC3