org.hsqldb
Class HsqlException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.hsqldb.HsqlException
All Implemented Interfaces:
Serializable

public class HsqlException
extends Exception

Class encapsulating all exceptions that can be thrown within the engine. Instances are used to create instances of java.sql.SQLException and returned to JDBC callers.

Since:
1.7.2
Version:
1.7.2
Author:
fredt@users
See Also:
Serialized Form

Constructor Summary
HsqlException(Result r)
           
HsqlException(String message, String state, int code)
           
 
Method Summary
 int getErrorCode()
           
 String getMessage()
           
 String getSQLState()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HsqlException

public HsqlException(String message,
                     String state,
                     int code)
Parameters:
message - String
state - XOPEN / SQL code for exceptoin
code - number code in HSQLDB

HsqlException

public HsqlException(Result r)
Parameters:
r - containing the members
Method Detail

getMessage

public String getMessage()
Returns:
message

getSQLState

public String getSQLState()
Returns:
SQL State

getErrorCode

public int getErrorCode()
Returns:
vendor specific error code


Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.