public class SuppressedMuleException extends MuleException
MuleException that is part of it's cause tree, meaning that the Mule Runtime
will not take it into account for the error handling. The suppressed cause and all its nested Throwable.getCause() will
not be taken into account during the Error resolution. throw newwill resolve to anTypedException(newConnectionException(),customErrorType)
Error with Error.getErrorType() returning ConnectionException's error type (discarding the
top level customErrorType). throw newwill resolve to anTypedException(newSuppressedMuleException(newConnectionException()),customErrorType)
Error with Error.getErrorType() returning customErrorType (discarding the underlying
ConnectionException's error type}).EXCEPTION_MESSAGE_DELIMITER, EXCEPTION_MESSAGE_SECTION_DELIMITER, INFO_ALREADY_LOGGED_KEY, INFO_ERROR_TYPE_KEY, INFO_LOCATION_KEY, INFO_SOURCE_XML_KEY, MISSING_DEFAULT_VALUE, MULE_VERBOSE_EXCEPTIONS, verboseExceptions| Modifier and Type | Method and Description |
|---|---|
MuleException |
getSuppressedException() |
static Throwable |
suppressIfPresent(Throwable exception,
Class<? extends MuleException> causeToSuppress)
Wraps the provided exception, suppressing the exception itself or the first cause that is an instance of the provided class.
|
Throwable |
unwrap()
Unwraps a
SuppressedMuleException. |
addAllInfo, addInfo, appendMessage, equals, getAdditionalInfo, getDetailedMessage, getExceptionInfo, getI18nMessage, getInfo, getMessage, getMessageCode, getSummaryMessage, getVerboseMessage, hashCode, isVerboseExceptions, prependMessage, refreshVerboseExceptions, setMessage, setMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic Throwable unwrap()
SuppressedMuleException.SuppressedMuleException.public MuleException getSuppressedException()
MuleException that has been suppressed by this SuppressedMuleException.public static Throwable suppressIfPresent(Throwable exception, Class<? extends MuleException> causeToSuppress)
SuppressedMuleException is found, making no suppression.exception - Exception that will be wrapped, suppressing the exception itself or one of it's causes.causeToSuppress - Class of the MuleException that has to be suppressed.SuppressedMuleException or provided exception if no cause to suppress is found.Copyright © 2024 MuleSoft, Inc.. All rights reserved.