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 |
INFO_LOCATION_KEY |
static String |
INFO_SOURCE_XML_KEY |
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) |
protected void |
appendSummaryMessage(StringBuilder builder)
Template method so when
#getSummaryMessage() is called, specific implementation can add content to the summary. |
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, toStringpublic static final String INFO_LOCATION_KEY
public static final String INFO_SOURCE_XML_KEY
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 Throwablepublic String getDetailedMessage()
public String getVerboseMessage()
public String getSummaryMessage()
protected void appendSummaryMessage(StringBuilder builder)
#getSummaryMessage() is called, specific implementation can add content to the summary. By
default, the location data will be added.builder - StringBuilder to use for appending additional summary info.public static boolean isVerboseExceptions()
Copyright © 2017 MuleSoft, Inc.. All rights reserved.