public class DataSourceException
extends java.lang.Exception
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.
| Constructor and Description |
|---|
DataSourceException()
Constructs a new
DataSourceException with a default detail
message. |
DataSourceException(java.lang.String message)
Constructs a new
DataSourceException with the given detail
message. |
DataSourceException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new
DataSourceException with the given detail
message and cause. |
DataSourceException(java.lang.Throwable cause)
Constructs a new
DataSourceException with a default detail
message and the given cause. |
public DataSourceException()
DataSourceException with a default detail
message.public DataSourceException(java.lang.String message)
DataSourceException with the given detail
message.message - the detail messagepublic DataSourceException(java.lang.String message,
java.lang.Throwable cause)
DataSourceException with the given detail
message and cause.message - the detail messagecause - the cause of this exceptionpublic DataSourceException(java.lang.Throwable cause)
DataSourceException with a default detail
message and the given cause.cause - the cause of this exception