public class BaseException extends RuntimeException
构造器和说明 |
---|
BaseException(int errCode) |
BaseException(int errCode,
String detail) |
BaseException(int errCode,
String detail,
BSONObject errorObject) |
BaseException(SDBError error) |
BaseException(SDBError error,
String detail) |
BaseException(SDBError error,
String detail,
Throwable e) |
BaseException(SDBError error,
Throwable e) |
限定符和类型 | 方法和说明 |
---|---|
int |
getErrorCode()
Get the error code.
|
BSONObject |
getErrorObject()
Get the error object.
|
String |
getErrorType()
Get the error type.
|
String |
getMessage()
Get the error message.
|
public BaseException(int errCode)
errCode
- The error code return by engine.public BaseException(int errCode, String detail)
errCode
- The error code return by engine.detail
- The error detail.public BaseException(int errCode, String detail, BSONObject errorObject)
errCode
- The error code return by engine.detail
- The error detail.errorObject
- The error object return from engine.public BaseException(SDBError error)
error
- The enumeration object of sequoiadb error.public BaseException(SDBError error, String detail)
error
- The enumeration object of sequoiadb error.detail
- The error detail.public BaseException(SDBError error, String detail, Throwable e)
error
- The enumeration object of sequoiadb error.detail
- The error detail.e
- The exception used to build exception chain.public int getErrorCode()
public BSONObject getErrorObject()
public String getErrorType()
public String getMessage()
getMessage
在类中 Throwable
Copyright © 2018. All rights reserved.