public class FileException extends DataStorageException
Exception thrown by file functions when an error occurs.
Modifier | Constructor and Description |
---|---|
|
FileException()
Default constructor.
|
protected |
FileException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static FileException |
withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
|
static FileException |
withCauseAndMessage(java.lang.RuntimeException cause,
java.lang.String message)
Return a new exception with the specified root cause and message text.
|
static FileException |
withMessage(java.lang.String message)
Return a new exception with the specified message text.
|
getCause, getMessage, setCause, setMessage, toString
protected FileException(java.lang.String message, java.lang.Throwable cause)
public FileException()
Default constructor.
public static FileException withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
cause
- (nullable) Root cause.public static FileException withCauseAndMessage(java.lang.RuntimeException cause, java.lang.String message)
Return a new exception with the specified root cause and message text.
cause
- (nullable) Root cause.message
- Message text.public static FileException withMessage(java.lang.String message)
Return a new exception with the specified message text.
message
- (nullable) Message text.