public class EsfException extends Exception
| Modifier and Type | Field and Description |
|---|---|
protected EsfErrorCode |
m_code |
| Constructor and Description |
|---|
EsfException(EsfErrorCode code)
Builds a new EdcException instance based on the supplied EdcErrorCode.
|
EsfException(EsfErrorCode code,
Object... arguments)
Builds a new EdcException instance based on the supplied EdcErrorCode.
|
EsfException(EsfErrorCode code,
Throwable cause,
Object... arguments)
Builds a new EdcException instance based on the supplied EdcErrorCode, an optional Throwable cause, and optional arguments for the associated exception message.
|
| Modifier and Type | Method and Description |
|---|---|
EsfErrorCode |
getCode() |
String |
getLocalizedMessage() |
String |
getMessage() |
static EsfException |
internalError(String message)
Factory method to build an EdcException with the EdcErrorCode.INTERNAL_ERROR code providing only a message.
|
static EsfException |
internalError(Throwable cause)
Factory method to build an EdcException with the EdcErrorCode.INTERNAL_ERROR code providing a cause and a message.
|
static EsfException |
internalError(Throwable cause,
String message)
Factory method to build an EdcException with the EdcErrorCode.INTERNAL_ERROR code providing a cause and a message.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected EsfErrorCode m_code
public EsfException(EsfErrorCode code)
code - t - arguments - public EsfException(EsfErrorCode code, Object... arguments)
code - t - arguments - public EsfException(EsfErrorCode code, Throwable cause, Object... arguments)
code - t - arguments - public static EsfException internalError(Throwable cause, String message)
cause - message - public static EsfException internalError(Throwable cause)
cause - message - public static EsfException internalError(String message)
cause - message - public EsfErrorCode getCode()
public String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class ThrowableCopyright © 2013. All Rights Reserved.