org.apache.hadoop.hbase.exceptions
Class HBaseSnapshotException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.hadoop.hbase.exceptions.HBaseIOException
                  extended by org.apache.hadoop.hbase.exceptions.HBaseSnapshotException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CorruptedSnapshotException, ExportSnapshotException, RestoreSnapshotException, SnapshotCreationException, SnapshotDoesNotExistException, SnapshotExistsException, UnknownSnapshotException

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class HBaseSnapshotException
extends HBaseIOException

General exception base class for when a snapshot fails

See Also:
Serialized Form

Constructor Summary
HBaseSnapshotException(String msg)
          Some exception happened for a snapshot and don't even know the snapshot that it was about
HBaseSnapshotException(String message, Exception e)
          Exception when the description of the snapshot cannot be determined, due to some root other root cause
HBaseSnapshotException(String msg, HBaseProtos.SnapshotDescription desc)
          Exception for the given snapshot that has no previous root cause
HBaseSnapshotException(String msg, Throwable cause, HBaseProtos.SnapshotDescription desc)
          Exception for the given snapshot due to another exception
 
Method Summary
 HBaseProtos.SnapshotDescription getSnapshotDescription()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HBaseSnapshotException

public HBaseSnapshotException(String msg)
Some exception happened for a snapshot and don't even know the snapshot that it was about

Parameters:
msg - Full description of the failure

HBaseSnapshotException

public HBaseSnapshotException(String msg,
                              HBaseProtos.SnapshotDescription desc)
Exception for the given snapshot that has no previous root cause

Parameters:
msg - reason why the snapshot failed
desc - description of the snapshot that is being failed

HBaseSnapshotException

public HBaseSnapshotException(String msg,
                              Throwable cause,
                              HBaseProtos.SnapshotDescription desc)
Exception for the given snapshot due to another exception

Parameters:
msg - reason why the snapshot failed
cause - root cause of the failure
desc - description of the snapshot that is being failed

HBaseSnapshotException

public HBaseSnapshotException(String message,
                              Exception e)
Exception when the description of the snapshot cannot be determined, due to some root other root cause

Parameters:
message - description of what caused the failure
e - root cause
Method Detail

getSnapshotDescription

public HBaseProtos.SnapshotDescription getSnapshotDescription()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.