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
public class DataSourceException extends Exception
TheDataSourceException
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, aDataSourceException
would be thrown with theSQLException
as cause.- Author:
- Patrick Schmidt
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataSourceException()
Constructs a newDataSourceException
with a default detail message.DataSourceException(String message)
Constructs a newDataSourceException
with the given detail message.DataSourceException(String message, Throwable cause)
Constructs a newDataSourceException
with the given detail message and cause.DataSourceException(Throwable cause)
Constructs a newDataSourceException
with 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 Detail
-
DataSourceException
public DataSourceException()
Constructs a newDataSourceException
with a default detail message.
-
DataSourceException
public DataSourceException(String message)
Constructs a newDataSourceException
with the given detail message.- Parameters:
message
- the detail message
-
DataSourceException
public DataSourceException(String message, Throwable cause)
Constructs a newDataSourceException
with the given detail message and cause.- Parameters:
message
- the detail messagecause
- the cause of this exception
-
DataSourceException
public DataSourceException(Throwable cause)
Constructs a newDataSourceException
with a default detail message and the given cause.- Parameters:
cause
- the cause of this exception
-
-