RowSetWarning (Java Platform SE 8 ) (original) (raw)


public class RowSetWarning
extends SQLException
An extension of SQLException that provides information about database warnings set on RowSet objects. Warnings are silently chained to the object whose method call caused it to be reported. This class complements the SQLWarning class.
Rowset warnings may be retrieved from JdbcRowSet,CachedRowSet™,WebRowSet, FilteredRowSet, or JoinRowSet implementations. To retrieve the first warning reported on anyRowSet implementation, use the method getRowSetWarnings defined in the JdbcRowSet interface or the CachedRowSet interface. To retrieve a warning chained to the first warning, use theRowSetWarning methodgetNextWarning. To retrieve subsequent warnings, callgetNextWarning on each RowSetWarning object that is returned.
The inherited methods getMessage, getSQLState, and getErrorCode retrieve information contained in aRowSetWarning object.
Since:
1.5
See Also:
Serialized Form

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.