public class TypedException
extends org.mule.runtime.api.exception.MuleRuntimeException
RuntimeException implementation to throw throwables that indicates explicitly
the ErrorType that is wanted to throw.
Also gives the possibility to declare a message for the Error being built.| Constructor and Description |
|---|
TypedException(Throwable throwable,
org.mule.runtime.api.message.ErrorType errorType) |
TypedException(Throwable throwable,
org.mule.runtime.api.message.ErrorType errorType,
String message) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.message.ErrorType |
getErrorType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TypedException(Throwable throwable, org.mule.runtime.api.message.ErrorType errorType)
throwable - The Throwable.getCause() of this new exception.errorType - The ErrorType that identifies the Throwable.getCause() Throwablepublic TypedException(Throwable throwable, org.mule.runtime.api.message.ErrorType errorType, String message)
throwable - The Throwable.getCause() of this new exception.errorType - The ErrorType that identifies the Throwable.getCause() Throwablemessage - error message to override the once from the original exceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.