public class BackupException extends Exception
Exception to report that a backup process has failed.
| Modifier and Type | Field and Description |
|---|---|
protected File |
source
The source file to be backup.
|
| Constructor and Description |
|---|
BackupException(String message,
Throwable cause,
File source)
Constructs a new backup exception with the specified detail message and cause.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getSource()
Gets the source file to be backup.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected File source
The source file to be backup.
public BackupException(String message, Throwable cause, File source)
Constructs a new backup exception with the specified detail message and cause.
message - the detail message (which is saved for later retrieval by the getMessage() method).cause - the cause (which is saved for later retrieval by the getCause() method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)source - the file from that was going to be done a backupException.Exception(String, Throwable)public File getSource()
Gets the source file to be backup.