Enum Class ErrorTypes

java.lang.Object
java.lang.Enum<ErrorTypes>
org.apache.nifi.processor.util.pattern.ErrorTypes
All Implemented Interfaces:
Serializable, Comparable<ErrorTypes>, Constable

public enum ErrorTypes extends Enum<ErrorTypes>
Represents general error types and how it should be treated.
  • Enum Constant Details

    • PersistentFailure

      public static final ErrorTypes PersistentFailure
      Procedure setting has to be fixed, otherwise the same error would occur irrelevant to the input. In order to NOT call failing process frequently, this should be yielded.
    • UnknownFailure

      public static final ErrorTypes UnknownFailure
      It is unknown whether the error is persistent or temporal, related to the input or not.
    • InvalidInput

      public static final ErrorTypes InvalidInput
      The input will be sent to the failure route for recovery without penalizing. Basically, the input should not be sent to the same procedure again unless the issue has been solved.
    • TemporalFailure

      public static final ErrorTypes TemporalFailure
      The procedure is temporarily unavailable, usually due to the external service unavailability. Retrying maybe successful, but it should be yielded for a while.
    • TemporalInputFailure

      public static final ErrorTypes TemporalInputFailure
      The input was not processed successfully due to some temporal error related to the specifics of the input. Retrying maybe successful, but it should be penalized for a while.
    • Defer

      public static final ErrorTypes Defer
      The input was not ready for being processed. It will be kept in the incoming queue and also be penalized.
  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static ErrorTypes[] 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 ErrorTypes 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
    • result

      public ErrorTypes.Result result()
    • destination

      public ErrorTypes.Destination destination()
    • penalty

      public ErrorTypes.Penalty penalty()