org.firebirdsql.jdbc
Class FBSQLWarning

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by java.sql.SQLWarning
                  extended by org.firebirdsql.jdbc.FBSQLWarning
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

Deprecated. To be removed in Jaybird 3.0, replace with SQLWarning.

@Deprecated
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
          Deprecated.  
 
Constructor Summary
FBSQLWarning(GDSException original)
          Deprecated. Create instance of this class.
FBSQLWarning(java.lang.String message)
          Deprecated. Create instance of this class for the specified message.
 
Method Summary
 int getErrorCode()
          Deprecated. Get error code for this warning.
 java.lang.Exception getInternalException()
          Deprecated.  
 java.lang.String getSQLState()
          Deprecated.  
 void printStackTrace(java.io.PrintStream s)
          Deprecated.  
 void printStackTrace(java.io.PrintWriter s)
          Deprecated.  
 
Methods inherited from class java.sql.SQLWarning
getNextWarning, setNextWarning
 
Methods inherited from class java.sql.SQLException
getNextException, iterator, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, 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
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

FBSQLWarning

public FBSQLWarning(GDSException original)
Deprecated. 
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)
Deprecated. 
Create instance of this class for the specified message.

Parameters:
message - message for this warning.
Method Detail

getErrorCode

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

Overrides:
getErrorCode in class java.sql.SQLException
Returns:
error code for this warning.

getSQLState

public java.lang.String getSQLState()
Deprecated. 
Overrides:
getSQLState in class java.sql.SQLException

getInternalException

public java.lang.Exception getInternalException()
Deprecated. 

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Deprecated. 
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Deprecated. 
Overrides:
printStackTrace in class java.lang.Throwable


Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.