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
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 Details

    • DataSourceException

      public DataSourceException()
      Constructs a new DataSourceException with a default detail message.
    • DataSourceException

      public DataSourceException(String message)
      Constructs a new DataSourceException with the given detail message.
      Parameters:
      message - the detail message
    • DataSourceException

      public DataSourceException(String message, Throwable cause)
      Constructs a new DataSourceException with the given detail message and cause.
      Parameters:
      message - the detail message
      cause - the cause of this exception
    • DataSourceException

      public DataSourceException(Throwable cause)
      Constructs a new DataSourceException with a default detail message and the given cause.
      Parameters:
      cause - the cause of this exception