Class java.sql.SQLWarning
All Packages Class Hierarchy This Package Previous Next Index
Class java.sql.SQLWarning
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.sql.SQLException
|
+----java.sql.SQLWarning
- public class SQLWarning
- extends SQLException
The SQLWarning class provides information on a database access
warnings. Warnings are silently chained to the object who's method
caused it to be reported.
- See Also:
- getWarnings, getWarnings, getWarnings
-
SQLWarning()
- Construct an SQLWarning with no description
-
SQLWarning(String)
- Construct an SQLWarning with only a reason
-
SQLWarning(String, String)
- Construct an SQLWarning without a vendorCode
-
SQLWarning(String, String, int)
- Construct a fully specified SQLWarning
-
getNextWarning()
- Get the warning chained to this one
-
setNextWarning(SQLWarning)
- Add an SQLWarning to the end of the chain.
SQLWarning
public SQLWarning(String reason,
String SQLstate,
int vendorCode)
- Construct a fully specified SQLWarning
- Parameters:
- reason - a description of the warning
- SQLState - an XOPEN code identifying the warning
- vendorCode - a database vendor specific warning code
SQLWarning
public SQLWarning(String reason,
String SQLstate)
- Construct an SQLWarning without a vendorCode
- Parameters:
- reason - a description of the warning
- SQLState - an XOPEN code identifying the warning
SQLWarning
public SQLWarning(String reason)
- Construct an SQLWarning with only a reason
- Parameters:
- reason - a description of the warning
SQLWarning
public SQLWarning()
- Construct an SQLWarning with no description
getNextWarning
public SQLWarning getNextWarning()
- Get the warning chained to this one
- Returns:
- the next SQLException in the chain
setNextWarning
public void setNextWarning(SQLWarning w)
- Add an SQLWarning to the end of the chain.
- Parameters:
- w - the new end of the SQLException chain
All Packages Class Hierarchy This Package Previous Next Index