public class BaseCheckedException extends Exception
Constructor and Description |
---|
BaseCheckedException() |
BaseCheckedException(String errorCode,
Context context) |
BaseCheckedException(String errorCode,
Context context,
Locale locale) |
BaseCheckedException(String errorCode,
Object... params) |
BaseCheckedException(String errorCode,
String defaultErrorMsg,
Context context,
Locale locale) |
BaseCheckedException(String errorCode,
String defaultErrorMsg,
Locale locale,
Object... params) |
BaseCheckedException(String errorCode,
String defaultErrorMsg,
Locale locale,
Throwable throwable,
Object... params) |
BaseCheckedException(String errorCode,
String defaultErrorMsg,
Throwable throwable,
Object... params) |
BaseCheckedException(String errorCode,
Throwable throwable,
Object... params) |
BaseCheckedException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Class exType)
Check whether this exception contains an exception of the given type:
either it is of the given class itself or it contains a nested cause of
the given type.
|
ErrorCode |
getErrorCode() |
static ErrorContext |
getErrorContext(Throwable throwable) |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BaseCheckedException(String errorCode, String defaultErrorMsg, Locale locale, Object... params)
public BaseCheckedException(String errorCode, Throwable throwable, Object... params)
public BaseCheckedException(String errorCode, String defaultErrorMsg, Throwable throwable, Object... params)
public BaseCheckedException(String errorCode, String defaultErrorMsg, Locale locale, Throwable throwable, Object... params)
public BaseCheckedException(String errorCode, String defaultErrorMsg, Context context, Locale locale)
public BaseCheckedException()
public BaseCheckedException(Throwable cause)
public static ErrorContext getErrorContext(Throwable throwable)
public String getMessage()
getMessage
in class Throwable
public ErrorCode getErrorCode()
public boolean contains(Class exType)
exType
- the exception type to look forCopyright © 2006–2018 TinyGroup. All rights reserved.