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,
              String sql)Creates a new  R2dbcException. | 
| R2dbcException(String reason,
              String sqlState,
              int errorCode,
              String sql,
              Throwable cause)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 | getSql()Returns the SQL that led to the problem (if known). | 
| String | getSqlState()Returns the SQLState. | 
| String | toString() | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic 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
                      String sql)
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 failuresql - the SQL statement that caused this errorpublic R2dbcException(@Nullable
                      String reason,
                      @Nullable
                      String sqlState,
                      int errorCode,
                      @Nullable
                      String sql,
                      @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 failuresql - the SQL statement that caused this errorcause - the causepublic 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()
@Nullable public final String getSql()
Copyright © 2021. All rights reserved.