FileDocCategorySizeDatePackage
SQLWarning.javaAPI DocAndroid 1.5 API3991Wed May 06 22:41:06 BST 2009java.sql

SQLWarning

public class SQLWarning extends SQLException implements Serializable
An exception class that holds information about Database access warnings.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public SQLWarning()
Creates an {@code SQLWarning} object. The reason string is set to {@code null}, the {@code SQLState} string is set to {@code null} and the error code is set to 0.

since
Android 1.0


                                           
      
        super();
    
public SQLWarning(String theReason)
Creates an {@code SQLWarning} object. The reason string is set to the given reason string, the {@code SQLState} string is set to {@code null} and the error code is set to 0.

param
theReason the reason why this warning is issued.
since
Android 1.0

        super(theReason);
    
public SQLWarning(String theReason, String theSQLState)
Creates an {@code SQLWarning} object. The reason string is set to the given reason string, the {@code SQLState} string is set to the given {@code SQLState} string and the error code is set to 0.

param
theReason the reason why this warning is issued.
param
theSQLState the string to use as the {@code SQLState} string.

        super(theReason, theSQLState);
    
public SQLWarning(String theReason, String theSQLState, int theErrorCode)
Creates an {@code SQLWarning} object. The reason string is set to the given reason string, the {@code SQLState} string is set to the given {@code SQLState} string and the error code is set to the given error code value.

param
theReason the reason why this warning is issued.
param
theSQLState the X/Open standard specifc error code.
param
theErrorCode a vendor specific error code.
since
Android 1.0

        super(theReason, theSQLState, theErrorCode);
    
Methods Summary
public java.sql.SQLWarninggetNextWarning()
Gets the next {@code SQLWarning} chained to this {@code SQLWarning} object.

return
the {@code SQLWarning} chained to this {@code SQLWarning}. {@code null} if no {@code SQLWarning} is chained to this {@code SQLWarning}.
since
Android 1.0

        SQLException next = super.getNextException();
        if (next == null) {
            return null;
        }
        if (next instanceof SQLWarning) {
            return (SQLWarning) next;
        }
        throw new Error(Messages.getString("sql.8")); //$NON-NLS-1$
    
public voidsetNextWarning(java.sql.SQLWarning w)
Chains a supplied {@code SQLWarning} to this {@code SQLWarning}.

param
w the {@code SQLWarning} linked to this {@code SQLWarning}.
since
Android 1.0

        super.setNextException(w);