Class ErrorTypeHierarchyItemDTO
java.lang.Object
org.mule.runtime.ast.internal.serialization.dto.ErrorTypeHierarchyItemDTO
Represents a node in the tree structure that represents the hierarchy of
ErrorTypes.-
Constructor Summary
ConstructorsConstructorDescriptionErrorTypeHierarchyItemDTO(String identifier, String namespace, boolean internal, List<ErrorTypeHierarchyItemDTO> children) -
Method Summary
Modifier and TypeMethodDescriptionIdentifier of the error.The namespace of the module where the error is defined.booleanorg.mule.runtime.api.message.ErrorTypetoErrorType(org.mule.runtime.api.message.ErrorType parent) Creates anErrorTypefor the information in this object with the provided parent.
-
Constructor Details
-
ErrorTypeHierarchyItemDTO
public ErrorTypeHierarchyItemDTO(String identifier, String namespace, boolean internal, List<ErrorTypeHierarchyItemDTO> children)
-
-
Method Details
-
toErrorType
public org.mule.runtime.api.message.ErrorType toErrorType(org.mule.runtime.api.message.ErrorType parent) Creates anErrorTypefor the information in this object with the provided parent.- Parameters:
parent- the parent of the errorType to be created.- Returns:
- a new
ErrorType.
-
getIdentifier
Identifier of the error. Is the value that is meant to be used in the configuration.- Returns:
- the string representation of the error.
-
getNamespace
The namespace of the module where the error is defined. For instance, for runtime errors the namespace is core.- Returns:
- namespace of the module that defines this error.
-
isInternal
public boolean isInternal()- Returns:
trueif the error represented by this object'sgetIdentifier()andgetNamespace()is NOT handleable.
-
getChildren
- Returns:
- the error types that have the error represented by this object as parent.
-