public class SQLWarning extends SQLException implements Serializable
| Constructor and Description |
|---|
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. |
SQLWarning(String reason,
String SQLState,
int vendorCode,
Throwable cause)
Creates an SQLWarning object.
|
SQLWarning(String reason,
String SQLState,
Throwable cause)
Creates an SQLWarning object.
|
SQLWarning(String reason,
Throwable cause)
Creates an SQLWarning object.
|
SQLWarning(Throwable cause)
Creates an SQLWarning object.
|
| Modifier and Type | Method and Description |
|---|---|
SQLWarning |
getNextWarning()
Gets the next
SQLWarning chained to this SQLWarning object. |
void |
setNextWarning(SQLWarning w)
Chains a supplied
SQLWarning to this SQLWarning. |
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SQLWarning()
SQLWarning object. The reason string is set to null, the SQLState string is set to null and the error
code is set to 0.public SQLWarning(String theReason)
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.theReason - the reason why this warning is issued.public SQLWarning(String theReason, String theSQLState)
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.theReason - the reason why this warning is issued.theSQLState - the string to use as the SQLState string.public SQLWarning(String theReason, String theSQLState, int theErrorCode)
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 error code
value.theReason - the reason why this warning is issued.theSQLState - the X/Open standard specifc error code.theErrorCode - a vendor specific error code.public SQLWarning(Throwable cause)
public SQLWarning(String reason, Throwable cause)
public SQLWarning(String reason, String SQLState, Throwable cause)
public SQLWarning getNextWarning()
SQLWarning chained to this SQLWarning object.SQLWarning chained to this SQLWarning.
null if no SQLWarning is chained to this SQLWarning.public void setNextWarning(SQLWarning w)
SQLWarning to this SQLWarning.w - the SQLWarning linked to this SQLWarning.