public abstract class MuleException extends Exception
MuleException
is the base exception type for the Mule server any other exceptions thrown by Mule code will be based on
this exception.Modifier and Type | Field and Description |
---|---|
static String |
EXCEPTION_MESSAGE_DELIMITER |
static String |
EXCEPTION_MESSAGE_SECTION_DELIMITER |
static String |
INFO_ALREADY_LOGGED_KEY |
static String |
INFO_ERROR_TYPE_KEY |
static String |
INFO_LOCATION_KEY |
static String |
INFO_SOURCE_XML_KEY |
static String |
MISSING_DEFAULT_VALUE |
static String |
MULE_VERBOSE_EXCEPTIONS |
static boolean |
verboseExceptions
When false (default), only a summary of the root exception and trail is provided.
|
Modifier | Constructor and Description |
---|---|
protected |
MuleException() |
|
MuleException(I18nMessage message) |
|
MuleException(I18nMessage message,
Throwable cause) |
|
MuleException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
void |
addInfo(String name,
Object info) |
protected void |
appendMessage(String s) |
boolean |
equals(Object o) |
String |
getDetailedMessage() |
I18nMessage |
getI18nMessage() |
Map<String,Object> |
getInfo() |
String |
getMessage() |
int |
getMessageCode() |
String |
getSummaryMessage() |
String |
getVerboseMessage() |
int |
hashCode() |
static boolean |
isVerboseExceptions() |
protected void |
prependMessage(String s) |
static void |
refreshVerboseExceptions()
Reads the value of the
mule.verbose.exceptions system property. |
protected void |
setMessage(I18nMessage message) |
protected void |
setMessage(String message) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String MULE_VERBOSE_EXCEPTIONS
public static final String INFO_LOCATION_KEY
public static final String INFO_SOURCE_XML_KEY
public static final String INFO_ERROR_TYPE_KEY
public static final String INFO_ALREADY_LOGGED_KEY
public static final String MISSING_DEFAULT_VALUE
public static final String EXCEPTION_MESSAGE_DELIMITER
public static final String EXCEPTION_MESSAGE_SECTION_DELIMITER
public static boolean verboseExceptions
public MuleException(I18nMessage message)
message
- the exception messagepublic MuleException(I18nMessage message, Throwable cause)
message
- the exception messagecause
- the exception that cause this exception to be thrownpublic MuleException(Throwable cause)
protected MuleException()
public static void refreshVerboseExceptions()
mule.verbose.exceptions
system property.protected void setMessage(I18nMessage message)
protected void setMessage(String message)
public I18nMessage getI18nMessage()
public int getMessageCode()
protected void appendMessage(String s)
protected void prependMessage(String s)
public final String getMessage()
getMessage
in class Throwable
public String getDetailedMessage()
public String getVerboseMessage()
public String getSummaryMessage()
public static boolean isVerboseExceptions()
Copyright © 2018. All rights reserved.