Java java.sql SQLWarning fields, constructors, methods, implement or subclass

Example usage for Java java.sql SQLWarning fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.sql SQLWarning.

The text is from its open source code.

Constructor

SQLWarning(String reason)
Constructs a SQLWarning object with a given reason.
SQLWarning(Throwable cause)
Constructs a SQLWarning object with a given cause.
SQLWarning(String reason, String SQLState)
Constructs a SQLWarning object with a given reason and SQLState.
SQLWarning(String reason, Throwable cause)
Constructs a SQLWarning object with a given reason and cause.
SQLWarning(String reason, String SQLState, int vendorCode)
Constructs a SQLWarning object with a given reason, SQLState and vendorCode.
SQLWarning(String reason, String SQLState, Throwable cause)
Constructs a SQLWarning object with a given reason, SQLState and cause.
SQLWarning()
Constructs a SQLWarning object.

Method

ThrowablegetCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown.
ClassgetClass()
Returns the runtime class of this Object .
intgetErrorCode()
Retrieves the vendor-specific exception code for this SQLException object.
StringgetLocalizedMessage()
Creates a localized description of this throwable.
StringgetMessage()
Returns the detail message string of this throwable.
SQLWarninggetNextWarning()
Retrieves the warning chained to this SQLWarning object by setNextWarning.
StringgetSQLState()
Retrieves the SQLState for this SQLException object.
voidsetNextWarning(SQLWarning w)
Adds a SQLWarning object to the end of the chain.
voidsetStackTrace(StackTraceElement[] stackTrace)
Sets the stack trace elements that will be returned by #getStackTrace() and printed by #printStackTrace() and related methods.
StringtoString()
Returns a short description of this throwable.