Class DibiException


dibi common exception.

Exception
   |
   --DibiException

Implements interfaces:

IDebugPanel

Direct Known Sub-classes:

DibiProcedureException, DibiDriverException
Copyright: Copyright (c) 2005, 2010 David Grudl
Located: in /libs/DibiException.php (line 21)
Constructor Summary
public
__construct ([string $message = NULL], [int $code = 0], [string $sql = NULL])
Construct a dibi exception.
Method Summary
string
getId ()
Returns panel ID.
mixed
Returns HTML code for custom panel.
string
getSql ()
mixed
getTab ()
Returns HTML code for custom tab.
string
Methods Inherited From Exception (Internal Class)
constructor __construct ( [$message = ], [$code = ], [$previous = ] ), getCode ( ), getFile ( ), getLine ( ), getMessage ( ), getPrevious ( ), getTrace ( ), getTraceAsString ( ), __clone ( ), __toString ( )
Variable Summary

Constructor Details

line 33

__construct

public __construct ([string $message = NULL], [int $code = 0], [string $sql = NULL])

Construct a dibi exception.

Input
string $message Message describing the exception
int $code Some code
string $sql SQL command
Method Details

line 92

getId

public string getId ()

Returns panel ID.

Output
string  

line 81

getPanel

public mixed getPanel ()

Returns HTML code for custom panel.

Output
mixed  

line 45

getSql

public string getSql ()

Output
string The SQL passed to the constructor

line 70

getTab

public mixed getTab ()

Returns HTML code for custom tab.

Output
mixed  

line 55

__toString

public string __toString ()

Output
string string represenation of exception with SQL command