Class BackupFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.infinispan.commons.CacheException
org.infinispan.remoting.RpcException
org.infinispan.xsite.BackupFailureException
- All Implemented Interfaces:
Serializable
Exception to be used to signal failures to backup to remote sites.
- Since:
- 5.2
- Author:
- Mircea Markus
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor, used for generic backup exceptionsBackupFailureException(String cacheName) Constructor used to indicate a cache failure.BackupFailureException(String siteName, Throwable throwable) Constructor used to indicate a cache failure related to a site. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BackupFailureException
public BackupFailureException()Empty constructor, used for generic backup exceptions -
BackupFailureException
Constructor used to indicate a cache failure. UseThrowable.addSuppressed(Throwable)to add site-specific failures- Parameters:
cacheName- the name of the cache
-
BackupFailureException
Constructor used to indicate a cache failure related to a site. Should be added to an instance of BackupFailureException created with theBackupFailureException(java.lang.String)constructor.- Parameters:
siteName- the name of the site which caused the failurethrowable- the cause of the failure
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-