SQLException Class Reference
[Creole]

Inherits Exception.

List of all members.

Public Member Functions

Public Attributes


Detailed Description

A class for handling database-related errors.

Author Hans Lellelid <hans@xmpl.org>

Version 

Revision

1.2


Constructor & Destructor Documentation

SQLException::SQLException ( $  code,  $  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.


Member Function Documentation

SQLException::setUserInfo ( $  info)

 

Sets additional user / debug information for this error.

Parameters:
array $info

Returns void

SQLException::getUserInfo ()

 

Returns the additional / debug information for this error.

Returns array hash of user info properties.

SQLException::setNativeError ( $  msg)

 

Sets driver native error message.

Parameters:
string $info

Returns void

SQLException::getNativeError ()

 

Gets driver native error message.

Returns string


Member Data Documentation

SQLException::$userInfo

 

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

SQLException::$nativeError

 

Native RDBMS error string


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


Copyright © 2004 Hans Lellelid  
Creole[php4] CVS