org.firebirdsql.jdbc
Class FBSQLWarning

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended byjava.sql.SQLWarning
                  extended byorg.firebirdsql.jdbc.FBSQLWarning
All Implemented Interfaces:
java.io.Serializable

public class FBSQLWarning
extends java.sql.SQLWarning

This class is a wrapper for GDSException instance that is warning.

Author:
Roman Rokytskyy
See Also:
Serialized Form

Field Summary
static java.lang.String SQL_STATE_WARNING
           
 
Constructor Summary
FBSQLWarning(GDSException original)
          Create instance of this class.
FBSQLWarning(java.lang.String message)
          Create instance of this class for the specified message.
 
Method Summary
 int getErrorCode()
          Get error code for this warning.
 java.lang.Exception getInternalException()
           
 java.lang.String getMessage()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 
Methods inherited from class java.sql.SQLWarning
getNextWarning, setNextWarning
 
Methods inherited from class java.sql.SQLException
getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SQL_STATE_WARNING

public static final java.lang.String SQL_STATE_WARNING
See Also:
Constant Field Values
Constructor Detail

FBSQLWarning

public FBSQLWarning(GDSException original)
Create instance of this class.

Parameters:
original - instance of GDSException that is warning
Throws:
java.lang.IllegalArgumentException - if original.isWarning() returns false).

FBSQLWarning

public FBSQLWarning(java.lang.String message)
Create instance of this class for the specified message.

Parameters:
message - message for this warning.
Method Detail

getErrorCode

public int getErrorCode()
Get error code for this warning.

Returns:
error code for this warning.

getInternalException

public java.lang.Exception getInternalException()

getMessage

public java.lang.String getMessage()

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream s)

printStackTrace

public void printStackTrace(java.io.PrintWriter s)


Copyright © 2001 David Jencks and other authors. All rights reserved.