java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.seasar.doma.DomaException
org.seasar.doma.jdbc.JdbcException
org.seasar.doma.jdbc.ScriptException
- All Implemented Interfaces:
Serializable
Thrown to indicate that the one of SQL statements in a script file throws an exception.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final Stringprotected final StringFields inherited from class org.seasar.doma.DomaException
args, messageResource -
Constructor Summary
ConstructorsConstructorDescriptionScriptException(Throwable cause, String rawSql, String scriptFilePath, int lineNumber) ScriptException(Throwable cause, Sql<?> sql, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the line number of the script file.Returns the raw SQL string.Returns the script file path.Methods inherited from class org.seasar.doma.jdbc.JdbcException
choiceSqlMethods inherited from class org.seasar.doma.DomaException
getArgs, getMessageResourceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
rawSql
-
scriptFilePath
-
lineNumber
protected final int lineNumber
-
-
Constructor Details
-
ScriptException
-
ScriptException
-
-
Method Details
-
getRawSql
Returns the raw SQL string.- Returns:
- the raw SQL string
-
getScriptFilePath
Returns the script file path.- Returns:
- the script file path
-
getLineNumber
public int getLineNumber()Returns the line number of the script file.- Returns:
- the line number
-