public abstract class R2dbcException extends RuntimeException
Constructor and Description |
---|
R2dbcException()
Creates a new
R2dbcException . |
R2dbcException(String reason)
Creates a new
R2dbcException . |
R2dbcException(String reason,
String sqlState)
Creates a new
R2dbcException . |
R2dbcException(String reason,
String sqlState,
int errorCode)
Creates a new
R2dbcException . |
R2dbcException(String reason,
String sqlState,
int errorCode,
Throwable cause)
Creates a new
R2dbcException . |
R2dbcException(String reason,
String sqlState,
Throwable cause)
Creates a new
R2dbcException . |
R2dbcException(String reason,
Throwable cause)
Creates a new
R2dbcException . |
R2dbcException(Throwable cause)
Creates a new
R2dbcException . |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns the vendor-specific error code.
|
String |
getSqlState()
Returns the SQLState.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public R2dbcException()
R2dbcException
.public R2dbcException(@Nullable String reason)
R2dbcException
.reason
- the reason for the error. Set as the exception's message and retrieved with Throwable.getMessage()
.public R2dbcException(@Nullable String reason, @Nullable String sqlState)
R2dbcException
.reason
- the reason for the error. Set as the exception's message and retrieved with Throwable.getMessage()
.sqlState
- the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003
conventionspublic R2dbcException(@Nullable String reason, @Nullable String sqlState, int errorCode)
R2dbcException
.reason
- the reason for the error. Set as the exception's message and retrieved with Throwable.getMessage()
.sqlState
- the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003
conventionserrorCode
- a vendor-specific error code representing this failurepublic R2dbcException(@Nullable String reason, @Nullable String sqlState, int errorCode, @Nullable Throwable cause)
R2dbcException
.reason
- the reason for the error. Set as the exception's message and retrieved with Throwable.getMessage()
.sqlState
- the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003
conventionserrorCode
- a vendor-specific error code representing this failurecause
- the causepublic R2dbcException(@Nullable String reason, @Nullable String sqlState, @Nullable Throwable cause)
R2dbcException
.reason
- the reason for the error. Set as the exception's message and retrieved with Throwable.getMessage()
.sqlState
- the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003
conventionscause
- the causepublic R2dbcException(@Nullable String reason, @Nullable Throwable cause)
R2dbcException
.reason
- the reason for the error. Set as the exception's message and retrieved with Throwable.getMessage()
.cause
- the causepublic R2dbcException(@Nullable Throwable cause)
R2dbcException
.cause
- the causepublic final int getErrorCode()
@Nullable public final String getSqlState()
Copyright © 2021. All rights reserved.