public class SqlExecutionException extends JdbcException
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
formattedSql |
protected SqlKind |
kind |
protected java.lang.String |
rawSql |
protected java.lang.Throwable |
rootCause |
protected java.lang.String |
sqlFilePath |
args, messageResource
Modifier | Constructor and Description |
---|---|
protected |
SqlExecutionException(MessageResource messageCode,
SqlKind kind,
java.lang.String rawSql,
java.lang.String formattedSql,
java.lang.String sqlFilePath,
java.lang.Throwable cause,
java.lang.Throwable rootCause) |
|
SqlExecutionException(SqlLogType logType,
Sql<?> sql,
java.lang.Throwable cause,
java.lang.Throwable rootCause) |
|
SqlExecutionException(SqlLogType logType,
SqlKind kind,
java.lang.String rawSql,
java.lang.String formattedSql,
java.lang.String sqlFilePath,
java.lang.Throwable cause,
java.lang.Throwable rootCause) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormattedSql()
Returns the formatted SQL string
|
SqlKind |
getKind()
Returns the SQL kind.
|
java.lang.String |
getRawSql()
Returns the raw SQL string.
|
java.lang.Throwable |
getRootCause()
Returns the root cause.
|
java.lang.String |
getSqlFilePath()
Returns the SQL file path.
|
choiceSql
getArgs, getMessageResource
protected final SqlKind kind
protected final java.lang.String rawSql
protected final java.lang.String formattedSql
protected final java.lang.String sqlFilePath
protected final java.lang.Throwable rootCause
public SqlExecutionException(SqlLogType logType, Sql<?> sql, java.lang.Throwable cause, java.lang.Throwable rootCause)
public SqlExecutionException(SqlLogType logType, SqlKind kind, java.lang.String rawSql, java.lang.String formattedSql, java.lang.String sqlFilePath, java.lang.Throwable cause, java.lang.Throwable rootCause)
protected SqlExecutionException(MessageResource messageCode, SqlKind kind, java.lang.String rawSql, java.lang.String formattedSql, java.lang.String sqlFilePath, java.lang.Throwable cause, java.lang.Throwable rootCause)
public SqlKind getKind()
public java.lang.String getRawSql()
public java.lang.String getFormattedSql()
null
if this exception is thrown in the batch processpublic java.lang.String getSqlFilePath()
null
if the SQL is auto generatedpublic java.lang.Throwable getRootCause()