Class DibiException


dibi common exception.

Exception
   |
   --DibiException

Implements interfaces:

IDebuggable

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
array
Returns custom panels.
string
getSql ()
string
Methods Inherited From Exception (Internal Class)
constructor __construct ( [$message = ], [$code = ] ), getCode ( ), getFile ( ), getLine ( ), getMessage ( ), 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 69

getPanels

public array getPanels ()

Returns custom panels.

Output
array  

line 45

getSql

public string getSql ()

Output
string The SQL passed to the constructor

line 55

__toString

public string __toString ()

Output
string string represenation of exception with SQL command