Package org.opends.server.backup
Class BackupException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opends.server.backup.BackupException
-
- All Implemented Interfaces:
Serializable,LocalizableException
public final class BackupException extends Exception implements LocalizableException
An exception that may be thrown when there is a problem with a backup file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BackupException(LocalizableMessage errorMessage)Creates an new backup file exception with the provided localizable message.BackupException(LocalizableMessage errorMessage, Throwable cause)Creates an new backup storage exception with the provided localizable message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalizableMessagegetMessageObject()Returns the localizable message that explains the problem that occurred.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BackupException
public BackupException(LocalizableMessage errorMessage)
Creates an new backup file exception with the provided localizable message.- Parameters:
errorMessage- The error message.
-
BackupException
public BackupException(LocalizableMessage errorMessage, Throwable cause)
Creates an new backup storage exception with the provided localizable message.- Parameters:
errorMessage- The error message.cause- The underlying cause that triggered this exception.
-
-
Method Detail
-
getMessageObject
public LocalizableMessage getMessageObject()
Description copied from interface:LocalizableExceptionReturns the localizable message that explains the problem that occurred.- Specified by:
getMessageObjectin interfaceLocalizableException- Returns:
- The localizable message that explains the problem that occurred.
-
-