public class ModuleException
extends org.mule.runtime.api.exception.MuleRuntimeException
RuntimeException implementation to throw Exceptions that indicates explicitly the ErrorTypeDefinition
that is wanted to throw. Also gives the possibility to declare to add a message and detailed message for the Error to
built.| Constructor and Description |
|---|
ModuleException(ErrorTypeDefinition<T> errorTypeDefinition,
Throwable cause) |
ModuleException(org.mule.runtime.api.i18n.I18nMessage message,
ErrorTypeDefinition<T> errorTypeDefinition) |
ModuleException(org.mule.runtime.api.i18n.I18nMessage message,
ErrorTypeDefinition<T> errorTypeDefinition,
Throwable cause) |
ModuleException(String message,
ErrorTypeDefinition<T> errorTypeDefinition) |
ModuleException(String message,
ErrorTypeDefinition<T> errorTypeDefinition,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
ErrorTypeDefinition |
getType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ModuleException(ErrorTypeDefinition<T> errorTypeDefinition, Throwable cause)
T - Type of the ErrorTypeDefinitionerrorTypeDefinition - The matched ErrorTypeDefinition,cause - The Throwable.getCause() of this new throwable.public ModuleException(org.mule.runtime.api.i18n.I18nMessage message,
ErrorTypeDefinition<T> errorTypeDefinition,
Throwable cause)
T - Type of the ErrorTypeDefinitionmessage - to override the one from the original throwableerrorTypeDefinition - The matched ErrorTypeDefinition,cause - The Throwable.getCause() of this new throwable.public ModuleException(String message, ErrorTypeDefinition<T> errorTypeDefinition, Throwable cause)
T - Type of the ErrorTypeDefinitionmessage - to override the one from the original throwableerrorTypeDefinition - The matched ErrorTypeDefinition,cause - The Throwable.getCause() of this new throwable.public ModuleException(org.mule.runtime.api.i18n.I18nMessage message,
ErrorTypeDefinition<T> errorTypeDefinition)
T - Type of the ErrorTypeDefinitionmessage - to override the one from the original exceptionerrorTypeDefinition - The matched ErrorTypeDefinition,public ModuleException(String message, ErrorTypeDefinition<T> errorTypeDefinition)
message - to override the one from the original exceptionerrorTypeDefinition - The matched ErrorTypeDefinition,public ErrorTypeDefinition getType()
ErrorTypeDefinition of the thrown exceptionCopyright © 2017 MuleSoft, Inc.. All rights reserved.