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.ExceptionMarker for metastore exceptions.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMSException.BadVersionExceptionA BadVersion exception.static classMSException.CodeReturn codes.static classMSException.IllegalOpExceptionIllegal operation exception.static classMSException.KeyExistsExceptionKey Exists Exception.static classMSException.MSInterruptedExceptionMetastore interruption exception.static classMSException.NoEntriesExceptionException would be thrown in a cursor if no entries found.static classMSException.NoKeyExceptionException in cases where there is no key.static classMSException.OperationFailureExceptionOperation failure exception.static classMSException.ServiceDownExceptionService 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 MSExceptioncreate(MSException.Code code)static MSExceptioncreate(MSException.Code code, java.lang.String errMsg)static MSExceptioncreate(MSException.Code code, java.lang.String errMsg, java.lang.Throwable cause)MSException.CodegetCode()
-
-
-
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)
-
-