SQLException Class Reference

Inherits Exception.

List of all members.

Public Member Functions

Protected Attributes


Member Function Documentation

SQLException::__construct ( $msg, $native = null, $userinfo = null )

 

Constructs a SQLException.
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.

void SQLException::setUserInfo ( $info )

 

Sets additional user / debug information for this error.

Parameters
array $info

Returns void

array SQLException::getUserInfo ( )

 

Returns the additional / debug information for this error.

Returns array hash of user info properties.

void SQLException::setNativeError ( $msg )

 

Sets driver native error message.

Parameters
string $info

Returns void

string SQLException::getNativeError ( )

 

Gets driver native error message.

Returns string

SQLException::toString ( )

 

Deprecated:
This method only exists right now for easier compatibility w/ PHPUnit!


Member Data Documentation

SQLException::$userInfo [protected]

 

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

SQLException::$nativeError [protected]

 

Native RDBMS error string


This file is part of the Creole[php5] library.


Copyright © 2004 Hans Lellelid  
Creole[php5] CVS