Enum Class ApiErrorReason

java.lang.Object
java.lang.Enum<ApiErrorReason>
com.bluebell.greenhouse.platform.enums.api.ApiErrorReason
All Implemented Interfaces:
GenericEnum<ApiErrorReason>, Serializable, Comparable<ApiErrorReason>, Constable

public enum ApiErrorReason extends Enum<ApiErrorReason> implements GenericEnum<ApiErrorReason>
Enumeration of the various reasons an api error is created. This class somewhat relates to the reasonPhase in an HttpServletRequest.
Version:
3.0.6
Author:
Stephen Prizio
  • Enum Constant Details

  • Method Details

    • values

      public static ApiErrorReason[] 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 ApiErrorReason 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
    • fromLabel

      public static ApiErrorReason fromLabel(String label)
      Computes an ApiErrorReason from a label.
      Parameters:
      label - label
      Returns:
      ApiErrorReason