java.lang.Object java.lang.Throwable java.lang.Exception java.sql.SQLException java.sql.SQLWarning
public class SQLWarning
An exception that provides information on database access warnings. Warnings are silently chained to the object whose method caused it to be reported.
Warnings may be retrieved from Connection
, Statement
, and ResultSet
objects. Trying to retrieve a warning on a connection after it has been closed will cause an exception to be thrown. Similarly, trying to retrieve a warning on a statement after it has been closed or on a result set after it has been closed will cause an exception to be thrown. Note that closing a statement also closes a result set that it might have produced.
Connection.getWarnings()
, Statement.getWarnings()
, ResultSet.getWarnings()
, Serialized Form
SQLWarning()
SQLWarning
object. SQLWarning(String reason)
SQLWarning
object with the given value for a reason; SQLstate defaults to null
, and vendorCode defaults to 0. SQLWarning(String reason, String SQLstate)
SQLWarning
object with the given reason and SQLState; the vendorCode defaults to 0. SQLWarning(String reason, String SQLstate, int vendorCode)
SQLWarning
object initialized with the given values. Methods inherited from class java.lang.Throwable fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
SQLWarning
public SQLWarning(String reason, String SQLstate, int vendorCode)
SQLWarning
object initialized with the given values.
reason
- a description of the warning
SQLstate
- an XOPEN code identifying the warning
vendorCode
- a database vendor-specific warning code
public SQLWarning(String reason, String SQLstate)
SQLWarning
object with the given reason and SQLState; the vendorCode defaults to 0.
reason
- a description of the warning
SQLstate
- an XOPEN code identifying the warning
public SQLWarning(String reason)
SQLWarning
object with the given value for a reason; SQLstate defaults to null
, and vendorCode defaults to 0.
reason
- a description of the warning
public SQLWarning()
SQLWarning
object. The reason defaults to null
, SQLState defaults to null
, and vendorCode defaults to 0.
public SQLWarning getNextWarning()
SQLWarning
object.
SQLException
in the chain; null
if none
setNextWarning(java.sql.SQLWarning)
public void setNextWarning(SQLWarning w)
SQLWarning
object to the end of the chain.
w
- the new end of the SQLException
chain
getNextWarning()
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4