Class CannotReadScriptException
- 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.CannotReadScriptException
- All Implemented Interfaces:
Serializable
public class CannotReadScriptException extends ScriptException
Thrown byScriptUtils
if an SQL script cannot be read.- Since:
- 3.0
- Author:
- Keith Donald, Sam Brannen
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description CannotReadScriptException(EncodedResource resource, Throwable cause)
Construct a newCannotReadScriptException
.
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
CannotReadScriptException
public CannotReadScriptException(EncodedResource resource, Throwable cause)
Construct a newCannotReadScriptException
.- Parameters:
resource
- the resource that cannot be read fromcause
- the underlying cause of the resource access failure