Package com.bayesserver.data
Class DataIOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.bayesserver.data.DataIOException
-
- All Implemented Interfaces:
Serializable
public class DataIOException extends RuntimeException
Raised when an error occurs reading data from or writing data to a database, a file or other source. Implementors of IDataReader should throw this exception when checked exceptions are thrown as a result of data acesss (e.g. SQLException or IOException). The checked exception should be set as the cause of this exception, so it can be handled if required.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataIOException()
Initializes a new instance of theDataIOException
class.DataIOException(String message)
Initializes a new instance of theDataIOException
class with a specified error message.DataIOException(String message, Throwable cause)
Initializes a new instance of theDataIOException
class with a specified error message and a reference to the inner exception that is the cause of this exception.DataIOException(Throwable cause)
Initializes a new instance of theDataIOException
class with a reference to the inner exception that is the cause of this exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DataIOException
public DataIOException()
Initializes a new instance of theDataIOException
class.
-
DataIOException
public DataIOException(String message)
Initializes a new instance of theDataIOException
class with a specified error message.- Parameters:
message
- The error message that explains the reason for the exception.
-
DataIOException
public DataIOException(String message, Throwable cause)
Initializes a new instance of theDataIOException
class with a specified error message and a reference to the inner exception that is the cause of this exception.- Parameters:
message
- The error message that explains the reason for the exception.cause
- The exception that is the cause of the current exception.
-
DataIOException
public DataIOException(Throwable cause)
Initializes a new instance of theDataIOException
class with a reference to the inner exception that is the cause of this exception.- Parameters:
cause
- The exception that is the cause of the current exception.
-
-