java.lang.Object
org.mule.runtime.ast.internal.serialization.dto.ErrorTypeHierarchyItemDTO

public class ErrorTypeHierarchyItemDTO extends Object
Represents a node in the tree structure that represents the hierarchy of ErrorTypes.
  • Constructor Details

  • Method Details

    • toErrorType

      public org.mule.runtime.api.message.ErrorType toErrorType(org.mule.runtime.api.message.ErrorType parent)
      Creates an ErrorType for the information in this object with the provided parent.
      Parameters:
      parent - the parent of the errorType to be created.
      Returns:
      a new ErrorType.
    • getIdentifier

      public String 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

      public String 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:
      true if the error represented by this object's getIdentifier() and getNamespace() is NOT handleable.
    • getChildren

      public List<ErrorTypeHierarchyItemDTO> getChildren()
      Returns:
      the error types that have the error represented by this object as parent.