Top Description Constructors Methods
io.r2dbc.spi

public Class R2dbcBadGrammarException

extends R2dbcNonTransientException
Class Inheritance

Exception thrown when the SQL statement has a problem in its syntax.

Constructor Summary

AccessConstructor and Description
public
public
R2dbcBadGrammarException(String
the reason for the error. Set as the exception's message and retrieved with getMessage().
reason
)

Creates a new R2dbcBadGrammarException.

public
R2dbcBadGrammarException(String
the reason for the error. Set as the exception's message and retrieved with getMessage().
reason
,
String
the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions
sqlState
)

Creates a new R2dbcBadGrammarException.

public
R2dbcBadGrammarException(String
the reason for the error. Set as the exception's message and retrieved with getMessage().
reason
,
String
the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions
sqlState
,
int
a vendor-specific error code representing this failure
errorCode
)

Creates a new R2dbcBadGrammarException.

public
R2dbcBadGrammarException(String
the reason for the error. Set as the exception's message and retrieved with getMessage().
reason
,
String
the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions
sqlState
,
int
a vendor-specific error code representing this failure
errorCode
,
String
the SQL statement that caused this error
sql
)

Creates a new R2dbcBadGrammarException.

public
R2dbcBadGrammarException(String
the reason for the error. Set as the exception's message and retrieved with getMessage().
reason
,
String
the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions
sqlState
,
int
a vendor-specific error code representing this failure
errorCode
,
String
the SQL statement that caused this error
sql
,
Throwable
the cause
cause
)

Creates a new R2dbcBadGrammarException.

public
R2dbcBadGrammarException(String
the reason for the error. Set as the exception's message and retrieved with getMessage().
reason
,
String
the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions
sqlState
,
int
a vendor-specific error code representing this failure
errorCode
,
Throwable
the cause
cause
)

Creates a new R2dbcBadGrammarException.

public
R2dbcBadGrammarException(String
the reason for the error. Set as the exception's message and retrieved with getMessage().
reason
,
String
the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions
sqlState
,
Throwable
the cause
cause
)

Creates a new R2dbcBadGrammarException.

public
R2dbcBadGrammarException(String
the reason for the error. Set as the exception's message and retrieved with getMessage().
reason
,
Throwable
the cause
cause
)

Creates a new R2dbcBadGrammarException.

public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the SQL
getOffendingSql
()

Returns the SQL that led to the problem (if known).

Constructor Detail

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException()

Creates a new R2dbcBadGrammarException.

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException(String reason)

Creates a new R2dbcBadGrammarException.

Parameters
reason:String

the reason for the error. Set as the exception's message and retrieved with getMessage().

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException(String reason, String sqlState)

Creates a new R2dbcBadGrammarException.

Parameters
reason:String

the reason for the error. Set as the exception's message and retrieved with getMessage().

sqlState:String

the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException(String reason, String sqlState, int errorCode)

Creates a new R2dbcBadGrammarException.

Parameters
reason:String

the reason for the error. Set as the exception's message and retrieved with getMessage().

sqlState:String

the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions

errorCode:int

a vendor-specific error code representing this failure

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException(String reason, String sqlState, int errorCode, String sql)

Creates a new R2dbcBadGrammarException.

Parameters
reason:String

the reason for the error. Set as the exception's message and retrieved with getMessage().

sqlState:String

the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions

errorCode:int

a vendor-specific error code representing this failure

sql:String

the SQL statement that caused this error

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException(String reason, String sqlState, int errorCode, String sql, Throwable cause)

Creates a new R2dbcBadGrammarException.

Parameters
reason:String

the reason for the error. Set as the exception's message and retrieved with getMessage().

sqlState:String

the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions

errorCode:int

a vendor-specific error code representing this failure

sql:String

the SQL statement that caused this error

cause:Throwable

the cause

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException(String reason, String sqlState, int errorCode, Throwable cause)

Creates a new R2dbcBadGrammarException.

Parameters
reason:String

the reason for the error. Set as the exception's message and retrieved with getMessage().

sqlState:String

the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions

errorCode:int

a vendor-specific error code representing this failure

cause:Throwable

the cause

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException(String reason, String sqlState, Throwable cause)

Creates a new R2dbcBadGrammarException.

Parameters
reason:String

the reason for the error. Set as the exception's message and retrieved with getMessage().

sqlState:String

the "SQLState" string, which follows either the XOPEN SQLState conventions or the SQL:2003 conventions

cause:Throwable

the cause

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException(String reason, Throwable cause)

Creates a new R2dbcBadGrammarException.

Parameters
reason:String

the reason for the error. Set as the exception's message and retrieved with getMessage().

cause:Throwable

the cause

R2dbcBadGrammarExceptionback to summary
public R2dbcBadGrammarException(Throwable cause)

Creates a new R2dbcBadGrammarException.

Parameters
cause:Throwable

the cause

Method Detail

getOffendingSqlback to summary
public String getOffendingSql()

Returns the SQL that led to the problem (if known).

Returns:String

the SQL

Annotations
@Nullable
See Also
getSql()