Package org.apache.bookkeeper.metastore
Class MSException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.bookkeeper.metastore.MSException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MSException.BadVersionException
,MSException.IllegalOpException
,MSException.KeyExistsException
,MSException.MSInterruptedException
,MSException.NoEntriesException
,MSException.NoKeyException
,MSException.OperationFailureException
,MSException.ServiceDownException
public abstract class MSException extends java.lang.Exception
Marker for metastore exceptions.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MSException.BadVersionException
A BadVersion exception.static class
MSException.Code
Return codes.static class
MSException.IllegalOpException
Illegal operation exception.static class
MSException.KeyExistsException
Key Exists Exception.static class
MSException.MSInterruptedException
Metastore interruption exception.static class
MSException.NoEntriesException
Exception would be thrown in a cursor if no entries found.static class
MSException.NoKeyException
Exception in cases where there is no key.static class
MSException.OperationFailureException
Operation failure exception.static class
MSException.ServiceDownException
Service down exception.
-
Constructor Summary
Constructors Constructor Description MSException(MSException.Code code, java.lang.String errMsg)
MSException(MSException.Code code, java.lang.String errMsg, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MSException
create(MSException.Code code)
static MSException
create(MSException.Code code, java.lang.String errMsg)
static MSException
create(MSException.Code code, java.lang.String errMsg, java.lang.Throwable cause)
MSException.Code
getCode()
-
-
-
Constructor Detail
-
MSException
MSException(MSException.Code code, java.lang.String errMsg)
-
MSException
MSException(MSException.Code code, java.lang.String errMsg, java.lang.Throwable cause)
-
-
Method Detail
-
getCode
public MSException.Code getCode()
-
create
public static MSException create(MSException.Code code)
-
create
public static MSException create(MSException.Code code, java.lang.String errMsg)
-
create
public static MSException create(MSException.Code code, java.lang.String errMsg, java.lang.Throwable cause)
-
-