Enum Class JavaModuleError

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

public enum JavaModuleError extends Enum<JavaModuleError> implements org.mule.runtime.extension.api.error.ErrorTypeDefinition<JavaModuleError>
The ErrorTypeDefinitions for the JavaModule
Since:
1.0
  • Enum Constant Details

    • CLASS_NOT_FOUND

      public static final JavaModuleError CLASS_NOT_FOUND
      No definition for the class with the specified name could be found
    • NOT_INSTANTIABLE_TYPE

      public static final JavaModuleError NOT_INSTANTIABLE_TYPE
      If the supplied class is abstract or an interface
    • NO_SUCH_CONSTRUCTOR

      public static final JavaModuleError NO_SUCH_CONSTRUCTOR
      The class doesn't have a matching constructor or it is not visible
    • ARGUMENTS_MISMATCH

      public static final JavaModuleError ARGUMENTS_MISMATCH
      Any of the arguments is of the wrong type, missing or too many arguments were provided
    • INVOCATION

      public static final JavaModuleError INVOCATION
      An error occurred during the invocation of a Method or Constructor
    • NO_SUCH_METHOD

      public static final JavaModuleError NO_SUCH_METHOD
      The specified method cannot be found
    • WRONG_INSTANCE_CLASS

      public static final JavaModuleError WRONG_INSTANCE_CLASS
      The Class of the a given instance does not match with the expected Class
  • Method Details

    • values

      public static JavaModuleError[] 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 JavaModuleError 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<org.mule.runtime.extension.api.error.ErrorTypeDefinition<? extends Enum<?>>> getParent()
      Specified by:
      getParent in interface org.mule.runtime.extension.api.error.ErrorTypeDefinition<JavaModuleError>