Package org.azd.enums
Enum Class ApiExceptionTypes
- All Implemented Interfaces:
Serializable
,Comparable<ApiExceptionTypes>
,Constable
Types of Exception to be thrown
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis will be thrown when an Api response couldn't be parsed.This will be thrown when a json content from file couldn't be parsed.This type will be thrown if the given argument is invalid.Throw this error type if the user passes invalid organization name.This will be thrown if an invalid personal access token is supplies.This exception type will be thrown if a string value couldn't be parsed. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiExceptionTypes
Returns the enum constant of this class with the specified name.static ApiExceptionTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
StringValueParsingException
This exception type will be thrown if a string value couldn't be parsed. -
InvalidPersonalAccessTokenException
This will be thrown if an invalid personal access token is supplies. -
ApiResponseParsingException
This will be thrown when an Api response couldn't be parsed. -
FileContentParsingException
This will be thrown when a json content from file couldn't be parsed. -
InvalidOrganizationNameException
Throw this error type if the user passes invalid organization name. -
InvalidArgumentException
This type will be thrown if the given argument is invalid.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-