Package de.aristaflow.adept2.util
Class DataSourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.util.DataSourceException
- All Implemented Interfaces:
Serializable
The
DataSourceException is a generic exception that is thrown
whenever there's a problem while accessing a data source (like files or a
database) and this problem prevents the task from finishing properly or at
least within acceptable parameters.
If e.g. the source is a database and accessed through JDBC and an
SQLException prevents a method from continuing, a
DataSourceException would be thrown with the
SQLException as cause.
- Author:
- Patrick Schmidt
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newDataSourceExceptionwith a default detail message.DataSourceException(String message) Constructs a newDataSourceExceptionwith the given detail message.DataSourceException(String message, Throwable cause) Constructs a newDataSourceExceptionwith the given detail message and cause.DataSourceException(Throwable cause) Constructs a newDataSourceExceptionwith a default detail message and the given cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataSourceException
public DataSourceException()Constructs a newDataSourceExceptionwith a default detail message. -
DataSourceException
Constructs a newDataSourceExceptionwith the given detail message.- Parameters:
message- the detail message
-
DataSourceException
Constructs a newDataSourceExceptionwith the given detail message and cause.- Parameters:
message- the detail messagecause- the cause of this exception
-
DataSourceException
Constructs a newDataSourceExceptionwith a default detail message and the given cause.- Parameters:
cause- the cause of this exception
-