public class IMCException extends Exception
| Constructor and Description |
|---|
IMCException(String message) |
IMCException(String errorCode,
String message) |
IMCException(Throwable cause,
String message) |
IMCException(Throwable cause,
String ec,
boolean recoverable,
Object... args) |
IMCException(Throwable cause,
String ec,
boolean recoverable,
String message,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getArguments() |
String |
getErrorCode()
Error code is mandatory so is ensured to be non null.
|
boolean |
isRecoverable() |
void |
print() |
static IMCException |
wrap(Throwable cause)
Wraps the given exception in a new
IMCException with internal
error code or returns the exception as is in case it is already a
IMCException. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IMCException(String message)
public Object[] getArguments()
public String getErrorCode()
public boolean isRecoverable()
public void print()
public static IMCException wrap(Throwable cause)
IMCException with internal
error code or returns the exception as is in case it is already a
IMCException.cause - the exception to wrapIMCException or the original exception in case it
is already a IMCException