2005/5/9

     
 

class SQLException

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::sql::SQLException Class Reference

#include <SQLException.h>

Inheritance diagram for acdk::sql::SQLException:

acdk::lang::Exception acdk::io::Serializable acdk::lang::Throwable acdk::lang::Object acdk::io::Serializable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::sql::SQLWarning List of all members.

Detailed Description

API: JDBC 2.0.

Author:
Roger Rene Kommer
Version:
Revision
1.10
Date:
Date
2005/04/08 10:53:21


Public Member Functions

 SQLException ()
 This method initializes a new instance of SQLException that does not have a descriptive messages and SQL state, and which has a vendor error code of 0.

 SQLException (INP(RString) message)
 This method initializes a new instance of SQLException with the specified descriptive error message.

 SQLException (INP(RString) message, INP(RString) sqlState)
 This method initializes a new instance of SQLException with the specified descriptive error message and SQL state string.

 SQLException (INP(RString) message, INP(RString) sqlState, int vendorCode)
 This method initializes a nwe instance of SQLException with the specified descriptive error message, SQL state string, and vendor code.

RString getSQLState ()
 This method returns the SQLState information associated with this error.

int getErrorCode ()
 This method returns the vendor specific error code associated with this error.

RSQLException getNextException ()
 This method returns the exception that is chained to this object.

void setNextException (INP(RSQLException) e)
 This method adds a new exception to the end of the chain of exceptions that are chained to this object.


Private Attributes

RSQLException _next
 This is the next exception in the chain .

RString _sqlState
 This is the state of the SQL statement at the time of the error.

int _vendorCode
 The vendor error code for this error .


Constructor & Destructor Documentation

acdk::sql::SQLException::SQLException  )  [inline]
 

This method initializes a new instance of SQLException that does not have a descriptive messages and SQL state, and which has a vendor error code of 0.

acdk::sql::SQLException::SQLException INP(RString message  )  [inline]
 

This method initializes a new instance of SQLException with the specified descriptive error message.

The SQL state of this instance will be null and the vendor error code will be 0.

Parameters:
message A string describing the nature of the error.

acdk::sql::SQLException::SQLException INP(RString message,
INP(RString sqlState
[inline]
 

This method initializes a new instance of SQLException with the specified descriptive error message and SQL state string.

The vendor error code of this instance will be 0.

Parameters:
message A string describing the nature of the error.
SQLState A string containing the SQL state of the error.

acdk::sql::SQLException::SQLException INP(RString message,
INP(RString sqlState,
int  vendorCode
[inline]
 

This method initializes a nwe instance of SQLException with the specified descriptive error message, SQL state string, and vendor code.

Parameters:
message A string describing the nature of the error.
SQLState A string containing the SQL state of the error.
vendorCode The vendor error code associated with this error.


Member Function Documentation

int acdk::sql::SQLException::getErrorCode  )  [inline]
 

This method returns the vendor specific error code associated with this error.

Returns:
The vendor specific error code associated with this error.

RSQLException acdk::sql::SQLException::getNextException  )  [inline]
 

This method returns the exception that is chained to this object.

Returns:
The exception chained to this object, which may be null.

RString acdk::sql::SQLException::getSQLState  )  [inline]
 

This method returns the SQLState information associated with this error.

The value returned is a String which is formatted using the XOPEN SQL state conventions.

Returns:
The SQL state, which may be null.

void acdk::sql::SQLException::setNextException INP(RSQLException e  )  [inline]
 

This method adds a new exception to the end of the chain of exceptions that are chained to this object.

Parameters:
e The exception to add to the end of the chain.


Member Data Documentation

RSQLException acdk::sql::SQLException::_next [private]
 

This is the next exception in the chain .

RString acdk::sql::SQLException::_sqlState [private]
 

This is the state of the SQL statement at the time of the error.

int acdk::sql::SQLException::_vendorCode [private]
 

The vendor error code for this error .