public class BaseException extends RuntimeException
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Get the error code.
|
BSONObject |
getErrorObject()
Get the error object.
|
String |
getErrorType()
Get the error type.
|
String |
getMessage()
Get the error message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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
in class Throwable
Copyright © 2023. All rights reserved.