Package com.github.ambry.store
Class StoreException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.github.ambry.store.StoreException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IdUndeletedStoreException
public class StoreException extends java.lang.Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StoreException(java.lang.String message, StoreErrorCodes error)
StoreException(java.lang.String message, java.lang.Throwable e, StoreErrorCodes error)
StoreException(java.lang.Throwable e, StoreErrorCodes error)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreErrorCodes
getErrorCode()
static StoreErrorCodes
resolveErrorCode(java.lang.Throwable t)
Resolve the error code fromThrowable
.
-
-
-
Constructor Detail
-
StoreException
public StoreException(java.lang.String message, StoreErrorCodes error)
-
StoreException
public StoreException(java.lang.String message, java.lang.Throwable e, StoreErrorCodes error)
-
StoreException
public StoreException(java.lang.Throwable e, StoreErrorCodes error)
-
-
Method Detail
-
getErrorCode
public StoreErrorCodes getErrorCode()
-
resolveErrorCode
public static StoreErrorCodes resolveErrorCode(java.lang.Throwable t)
Resolve the error code fromThrowable
. This is to determine if exception is related to real disk I/O issue.- Parameters:
t
- theThrowable
to check- Returns:
- the
StoreErrorCodes
based on the error message in exception/error.
-
-