public final class ImmutableErrorModel extends Object implements ErrorModel
ErrorModel| Constructor and Description |
|---|
ImmutableErrorModel(String type,
String namespace,
boolean handleable,
ErrorModel parent)
Creates a new instance
|
ImmutableErrorModel(String type,
String namespace,
ErrorModel parent)
Deprecated.
This constructor is deprecated and will be removed in Mule 5. Use
ImmutableErrorModel(String, String, ErrorModel)
instead |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getNamespace()
Gets the namespace of error.
|
Optional<ErrorModel> |
getParent() |
String |
getType()
Gets the type of the error.
|
int |
hashCode() |
boolean |
isHandleable() |
String |
toString() |
@Deprecated public ImmutableErrorModel(String type, String namespace, ErrorModel parent)
ImmutableErrorModel(String, String, ErrorModel)
insteadtype - the error typenamespace - the error namespaceparent - the error's parentpublic ImmutableErrorModel(String type, String namespace, boolean handleable, ErrorModel parent)
type - the error typenamespace - the error namespacehandleable - whether the error can be handled through an error handler or notparent - the error's parentpublic String getType()
getType in interface ErrorModelpublic String getNamespace()
MULE namespace.getNamespace in interface ErrorModelpublic boolean isHandleable()
isHandleable in interface ErrorModelpublic Optional<ErrorModel> getParent()
getParent in interface ErrorModelErrorModel parent of the current ErrorModel from which it inherits from.Copyright © 2021 MuleSoft, Inc.. All rights reserved.