jasp.adodb
Class Error

java.lang.Object
  |
  +--jasp.adodb.Error

public class Error
extends java.lang.Object

An Error object contains details about data access errors pertaining to a single operation involving the jdbc driver


Constructor Summary
Error()
          Constructs an Error Object.
Error(java.sql.SQLException ex, java.lang.String theSource)
          Constructs an Error Object with the spceific SQLException to Error
 
Method Summary
 java.lang.String getDescription()
          Returns the descrition of the currect error.
 int getNativeError()
          Returns the NativeError
 int getNumber()
          Returns the error No.
 java.lang.String getSource()
          Returns the source of the currect error.
 java.lang.String getSQLState()
          Returns the SQLState of the currect error
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Error

public Error()
Constructs an Error Object.

Error

public Error(java.sql.SQLException ex,
             java.lang.String theSource)
Constructs an Error Object with the spceific SQLException to Error
Parameters:
ex - a SQLException
theSource - the error source.
Method Detail

getDescription

public java.lang.String getDescription()
Returns the descrition of the currect error.

getSQLState

public java.lang.String getSQLState()
Returns the SQLState of the currect error

getSource

public java.lang.String getSource()
Returns the source of the currect error.

getNumber

public int getNumber()
Returns the error No.
Returns:
a int value

getNativeError

public int getNativeError()
Returns the NativeError