org.firebirdsql.jdbc
Class FBSQLWarning
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLWarning
org.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
Constructor Summary |
FBSQLWarning(GDSException original)
Create instance of this class. |
FBSQLWarning(java.lang.String message)
Create instance of this class for the specified message. |
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 |
SQL_STATE_WARNING
public static final java.lang.String SQL_STATE_WARNING
- See Also:
- Constant Field Values
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.
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.