creole
[ class tree: creole ] [ index: creole ] [ all elements ]

Class: SQLException

Source Location: /creole/SQLException.php

Class Overview

Exception
   |
   --SQLException

A class for handling database-related errors.


Author(s):

Version:

  • $Revision: 1.10 $

Variables

Methods



Class Details

[line 29]
A class for handling database-related errors.



Tags:

version:  $Revision: 1.10 $
author:  Hans Lellelid <hans@xmpl.org>


[ Top ]


Class Variables

$nativeError =

[line 35]

Native RDBMS error string



Tags:

access:  protected

Type:   mixed


[ Top ]

$userInfo =

[line 32]

Information that provides additional information for context of Exception (e.g. SQL statement or DSN).



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 43]

SQLException __construct( string $msg, [string $native = null], [string $userinfo = null])

Constructs a SQLException.



Tags:

access:  public


Parameters:

string   $msg   Error message
string   $native   Native DB error message.
string   $userinfo   More info, e.g. the SQL statement or the connection string that caused the error.

[ Top ]

method getNativeError [line 93]

string getNativeError( )

Gets driver native error message.



Tags:

access:  public


[ Top ]

method getUserInfo [line 71]

array getUserInfo( )

Returns the additional / debug information for this error.



Tags:

return:  hash of user info properties.
access:  public


[ Top ]

method setNativeError [line 82]

void setNativeError( mixed $msg, string $info)

Sets driver native error message.



Tags:

access:  public


Parameters:

string   $info  

[ Top ]

method setUserInfo [line 60]

void setUserInfo( array $info)

Sets additional user / debug information for this error.



Tags:

access:  public


Parameters:

array   $info  

[ Top ]

method toString [line 101]

void toString( )



Tags:

access:  public
deprecated:  This method only exists right now for easier compatibility w/ PHPUnit!


[ Top ]


Documentation generated on Mon, 23 Aug 2004 21:53:10 -0400 by phpDocumentor 1.3.0RC3