Package org.azd.enums

Enum Class ApiExceptionTypes

java.lang.Object
java.lang.Enum<ApiExceptionTypes>
org.azd.enums.ApiExceptionTypes
All Implemented Interfaces:
Serializable, Comparable<ApiExceptionTypes>, Constable

public enum ApiExceptionTypes extends Enum<ApiExceptionTypes>
Types of Exception to be thrown
  • Enum Constant Details

    • StringValueParsingException

      public static final ApiExceptionTypes StringValueParsingException
      This exception type will be thrown if a string value couldn't be parsed.
    • InvalidPersonalAccessTokenException

      public static final ApiExceptionTypes InvalidPersonalAccessTokenException
      This will be thrown if an invalid personal access token is supplies.
    • ApiResponseParsingException

      public static final ApiExceptionTypes ApiResponseParsingException
      This will be thrown when an Api response couldn't be parsed.
    • FileContentParsingException

      public static final ApiExceptionTypes FileContentParsingException
      This will be thrown when a json content from file couldn't be parsed.
    • InvalidOrganizationNameException

      public static final ApiExceptionTypes InvalidOrganizationNameException
      Throw this error type if the user passes invalid organization name.
    • InvalidArgumentException

      public static final ApiExceptionTypes InvalidArgumentException
      This type will be thrown if the given argument is invalid.
  • Method Details

    • values

      public static ApiExceptionTypes[] 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 ApiExceptionTypes 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