Skip to content

Most visited

Recently visited

navigation
Added in API level 1

SQLWarning

public class SQLWarning
extends SQLException implements Serializable

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.sql.SQLException
         ↳ java.sql.SQLWarning
Known Direct Subclasses


An exception class that holds information about Database access warnings.

Summary

Public constructors

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(Throwable cause)

Creates an SQLWarning object.

SQLWarning(String reason, Throwable cause)

Creates an SQLWarning object.

SQLWarning(String reason, String SQLState, Throwable cause)

Creates an SQLWarning object.

SQLWarning(String reason, String SQLState, int vendorCode, Throwable cause)

Creates an SQLWarning object.

Public methods

SQLWarning getNextWarning()

Gets the next SQLWarning chained to this SQLWarning object.

void setNextWarning(SQLWarning w)

Chains a supplied SQLWarning to this SQLWarning.

Inherited methods

From class java.sql.SQLException
From class java.lang.Throwable
From class java.lang.Object
From interface java.lang.Iterable

Public constructors

SQLWarning

Added in API level 1
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

Added in API level 1
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 String: the reason why this warning is issued.

SQLWarning

Added in API level 1
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 String: the reason why this warning is issued.
theSQLState String: the string to use as the SQLState string.

SQLWarning

Added in API level 1
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 error code value.

Parameters
theReason String: the reason why this warning is issued.
theSQLState String: the X/Open standard specifc error code.
theErrorCode int: a vendor specific error code.

SQLWarning

Added in API level 9
SQLWarning (Throwable cause)

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, cause is set to cause.

Parameters
cause Throwable

SQLWarning

Added in API level 9
SQLWarning (String reason, 
                Throwable cause)

Creates an SQLWarning object. The Reason string is set to reason, the SQLState string is set to null and the Error Code is set to 0, cause is set to the given cause

Parameters
reason String
cause Throwable

SQLWarning

Added in API level 9
SQLWarning (String reason, 
                String SQLState, 
                Throwable cause)

Creates an SQLWarning object. The Reason string is set to reason, the SQLState string is set to given SQLState and the Error Code is set to 0, cause is set to the given cause

Parameters
reason String
SQLState String
cause Throwable

SQLWarning

Added in API level 9
SQLWarning (String reason, 
                String SQLState, 
                int vendorCode, 
                Throwable cause)

Creates an SQLWarning object. The Reason string is set to reason, the SQLState string is set to given SQLState and the Error Code is set to vendorCode, cause is set to the given cause

Parameters
reason String
SQLState String
vendorCode int
cause Throwable

Public methods

getNextWarning

Added in API level 1
SQLWarning getNextWarning ()

Gets the next SQLWarning chained to this SQLWarning object.

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

setNextWarning

Added in API level 1
void setNextWarning (SQLWarning w)

Chains a supplied SQLWarning to this SQLWarning.

Parameters
w SQLWarning: the SQLWarning linked to this SQLWarning.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.