Build 1.0_r1(from source)

java.sql
Class SQLWarning

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by java.sql.SQLWarning
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DataTruncation

public class SQLWarning
extends SQLException
implements Serializable

An exception class that holds information about Database access warnings.

See Also:
Serialized Form

Constructor Summary
SQLWarning()
          Creates an SQLWarning object.
SQLWarning(String theReason)
          Creates an SQLWarning object.
SQLWarning(String theReason, String theSQLState)
          Creates an SQLWarning object.
SQLWarning(String theReason, String theSQLState, int theErrorCode)
          Creates an SQLWarning object.
 
Method Summary
 SQLWarning getNextWarning()
          Gets the SQLWarning chained to this SQLWarning object.
 void setNextWarning(SQLWarning w)
          Chains a supplied SQLWarning to this SQLWarning.
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

SQLWarning

public SQLWarning()
Creates an SQLWarning object. The Reason string is set to null, the SQLState string is set to null and the Error Code is set to 0.


SQLWarning

public SQLWarning(String theReason)
Creates an SQLWarning object. The Reason string is set to the given reason string, the SQLState string is set to null and the Error Code is set to 0.

Parameters:
theReason -

SQLWarning

public SQLWarning(String theReason,
                  String theSQLState)
Creates an SQLWarning object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to 0.

Parameters:
theReason - the string to use as the Reason string
theSQLState - the string to use as the SQLState string

SQLWarning

public SQLWarning(String theReason,
                  String theSQLState,
                  int theErrorCode)
Creates an SQLWarning object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to the given ErrorCode value.

Parameters:
theReason -
theSQLState -
theErrorCode -
Method Detail

getNextWarning

public SQLWarning getNextWarning()
Gets the SQLWarning chained to this SQLWarning object.

Returns:
the SQLWarning chained to this SQLWarning. null if no SQLWarning is chained to this SQLWarning.

setNextWarning

public void setNextWarning(SQLWarning w)
Chains a supplied SQLWarning to this SQLWarning.

Parameters:
w - the SQLWarning to chain to this SQLWarning.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature