Class ScriptParseException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.dao.DataAccessException
- org.springframework.jdbc.datasource.init.ScriptException
- org.springframework.jdbc.datasource.init.ScriptParseException
- All Implemented Interfaces:
Serializable
public class ScriptParseException extends ScriptException
Thrown byScriptUtils
if an SQL script cannot be properly parsed.- Since:
- 4.0.3
- Author:
- Sam Brannen
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description ScriptParseException(String message, EncodedResource resource)
Construct a newScriptParseException
.ScriptParseException(String message, EncodedResource resource, Throwable cause)
Construct a newScriptParseException
.
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
ScriptParseException
public ScriptParseException(String message, @Nullable EncodedResource resource)
Construct a newScriptParseException
.- Parameters:
message
- detailed messageresource
- the resource from which the SQL script was read
ScriptParseException
public ScriptParseException(String message, @Nullable EncodedResource resource, @Nullable Throwable cause)
Construct a newScriptParseException
.- Parameters:
message
- detailed messageresource
- the resource from which the SQL script was readcause
- the underlying cause of the failure