java.lang.Object
java.lang.Enum<MuleErrors>
org.mule.runtime.extension.api.error.MuleErrors
All Implemented Interfaces:
Serializable, Comparable<MuleErrors>, Constable, ErrorTypeDefinition<MuleErrors>

@MinMuleVersion("4.1") public enum MuleErrors extends Enum<MuleErrors> implements ErrorTypeDefinition<MuleErrors>
ErrorTypeDefinition Enum which publish the available errors that the Mule Runtime provides to be extended from an extension.
Since:
1.0
  • Enum Constant Details

    • ANY

      public static final MuleErrors ANY
      Wild card that matches with any error and is on top of the error hierarchy for those that allow handling.
    • CONNECTIVITY

      public static final MuleErrors CONNECTIVITY
      Indicates that a problem occurred and a connection could not be established.
    • TRANSFORMATION

      public static final MuleErrors TRANSFORMATION
      Indicates that a problem occurred when transforming a value.
    • EXPRESSION

      public static final MuleErrors EXPRESSION
      Indicates that a problem occurred when resolving an expression.
    • REDELIVERY_EXHAUSTED

      public static final MuleErrors REDELIVERY_EXHAUSTED
      Indicates that the retry policy, of a certain component, to execute some action, eg: connectivity, delivery has been. exhausted
    • RETRY_EXHAUSTED

      public static final MuleErrors RETRY_EXHAUSTED
      Indicates that the retry of a certain execution block has been exhausted.
    • ROUTING

      public static final MuleErrors ROUTING
      Indicates that a problem occurred when routing a message.
    • SECURITY

      public static final MuleErrors SECURITY
      Indicates a security type problem occurred, eg: invalid credentials, expired token, etc.
    • CLIENT_SECURITY

      public static final MuleErrors CLIENT_SECURITY
      Indicates a security type problem enforced by an external entity.
    • SERVER_SECURITY

      public static final MuleErrors SERVER_SECURITY
      Indicates a security type problem enforced by the mule runtime.
    • SOURCE

      public static final MuleErrors SOURCE
      Indicates that an error occurred in the source of a flow.
    • SOURCE_RESPONSE

      public static final MuleErrors SOURCE_RESPONSE
      Indicates that an error occurred in the source of the flow processing a successful response.
    • SOURCE_RESPONSE_GENERATE

      public static final MuleErrors SOURCE_RESPONSE_GENERATE
      Indicates that an error occurred in the source of the flow generating the parameters of a successful response.
    • SOURCE_RESPONSE_SEND

      public static final MuleErrors SOURCE_RESPONSE_SEND
      Indicates that an error occurred in the source of the flow sending a successful response.
    • SOURCE_ERROR_RESPONSE_GENERATE

      public static final MuleErrors SOURCE_ERROR_RESPONSE_GENERATE
      Indicates that an error occurred in the source of the flow generating the parameters of an error response.
    • SOURCE_ERROR_RESPONSE_SEND

      public static final MuleErrors SOURCE_ERROR_RESPONSE_SEND
      Indicates that an error occurred in the source of the flow sending an error response.
    • VALIDATION

      public static final MuleErrors VALIDATION
      Indicates that a validator failed.
    • CRITICAL

      public static final MuleErrors CRITICAL
      Indicates that a severe error occurred. Cannot be handled. Top of the error hierarchy for those that do not allow handling.
  • Method Details

    • values

      public static MuleErrors[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MuleErrors valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getParent

      public Optional<ErrorTypeDefinition<?>> getParent()
      Specified by:
      getParent in interface ErrorTypeDefinition<MuleErrors>
      Returns:
      The Optional parent of the current error type definition