Package org.apache.hadoop.hbase.snapshot
Class HBaseSnapshotException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.DoNotRetryIOException
org.apache.hadoop.hbase.snapshot.HBaseSnapshotException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CorruptedSnapshotException
,ExportSnapshotException
,RestoreSnapshotException
,SnapshotCreationException
,SnapshotDoesNotExistException
,SnapshotExistsException
,SnapshotTTLExpiredException
,UnknownSnapshotException
General exception base class for when a snapshot fails.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHBaseSnapshotException
(String message) Some exception happened for a snapshot and don't even know the snapshot that it was about.HBaseSnapshotException
(String message, Throwable cause) Exception when the description of the snapshot cannot be determined, due to some root other root cause.HBaseSnapshotException
(String message, Throwable cause, SnapshotDescription snapshotDescription) Exception for the given snapshot due to another exception.HBaseSnapshotException
(String message, SnapshotDescription snapshotDescription) Exception for the given snapshot that has no previous root cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the snapshot that is being failedMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
description
-
-
Constructor Details
-
HBaseSnapshotException
Some exception happened for a snapshot and don't even know the snapshot that it was about.- Parameters:
message
- the full description of the failure
-
HBaseSnapshotException
Exception for the given snapshot that has no previous root cause.- Parameters:
message
- the reason why the snapshot failedsnapshotDescription
- the description of the snapshot that is failing
-
HBaseSnapshotException
public HBaseSnapshotException(String message, Throwable cause, SnapshotDescription snapshotDescription) Exception for the given snapshot due to another exception.- Parameters:
message
- the reason why the snapshot failedcause
- the root cause of the failuresnapshotDescription
- the description of the snapshot that is being failed
-
HBaseSnapshotException
Exception when the description of the snapshot cannot be determined, due to some root other root cause.- Parameters:
message
- description of what caused the failurecause
- the root cause
-
-
Method Details
-
getSnapshotDescription
Returns the description of the snapshot that is being failed
-