public class R2dbcBadGrammarException extends R2dbcNonTransientException
| Modifier and Type | Method and Description | 
|---|---|
| String | getOffendingSql()Returns the offending SQL String. | 
getErrorCode, getSqlState, toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic R2dbcBadGrammarException()
R2dbcBadGrammarException.public R2dbcBadGrammarException(@Nullable
                                String reason)
R2dbcBadGrammarException.reason - the reason for the error.  Set as the exception's message and retrieved with Throwable.getMessage().public R2dbcBadGrammarException(@Nullable
                                String reason,
                                @Nullable
                                String sqlState)
R2dbcBadGrammarException.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 R2dbcBadGrammarException(@Nullable
                                String reason,
                                @Nullable
                                String sqlState,
                                int errorCode)
R2dbcBadGrammarException.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 R2dbcBadGrammarException(@Nullable
                                String reason,
                                @Nullable
                                String sqlState,
                                int errorCode,
                                @Nullable
                                String offendingSql)
R2dbcBadGrammarException.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 failureoffendingSql - the SQL statement that caused this errorpublic R2dbcBadGrammarException(@Nullable
                                String reason,
                                @Nullable
                                String sqlState,
                                int errorCode,
                                @Nullable
                                Throwable cause)
R2dbcBadGrammarException.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 R2dbcBadGrammarException(@Nullable
                                String reason,
                                @Nullable
                                String sqlState,
                                int errorCode,
                                @Nullable
                                String offendingSql,
                                @Nullable
                                Throwable cause)
R2dbcBadGrammarException.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 failureoffendingSql - the SQL statement that caused this errorcause - the causepublic R2dbcBadGrammarException(@Nullable
                                String reason,
                                @Nullable
                                String sqlState,
                                @Nullable
                                Throwable cause)
R2dbcBadGrammarException.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 R2dbcBadGrammarException(@Nullable
                                String reason,
                                @Nullable
                                Throwable cause)
R2dbcBadGrammarException.reason - the reason for the error.  Set as the exception's message and retrieved with Throwable.getMessage().cause - the causepublic R2dbcBadGrammarException(@Nullable
                                Throwable cause)
R2dbcBadGrammarException.cause - the cause@Nullable public String getOffendingSql()
Copyright © 2021. All rights reserved.