Package ch.swisscom.mid.client.model
Enum FailureReason
- All Implemented Interfaces:
DocumentedEnum,Serializable,Comparable<FailureReason>,java.lang.constant.Constable
Enum with all the main reasons for which a communication between the MID Client and a configured Mobile ID service can
fail. A reason from this list is wrapped in a
Fault and then wrapped again in a thrown exception of
type MIDFlowException. Callers can inspect the Fault and one of these reasons and understand
what failed. Some of these reasons will also put some extra info the Fault's fields.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiontoString()static FailureReasonReturns the enum constant of this type with the specified name.static FailureReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REQUEST_PREPARATION_FAILURE
-
HOST_CONNECTION_FAILURE
-
HOST_CONNECT_TIMEOUT_FAILURE
-
HTTP_DATA_TRANSFER_FAILURE
-
TLS_CONNECTION_FAILURE
-
HTTP_COMMUNICATION_FAILURE
-
RESPONSE_TIMEOUT_FAILURE
-
RESPONSE_PARSING_FAILURE
-
MID_SERVICE_FAILURE
-
MID_INVALID_RESPONSE_FAILURE
-
UNKNOWN_FAILURE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getDescription
- Specified by:
getDescriptionin interfaceDocumentedEnum
-
toString
- Overrides:
toStringin classEnum<FailureReason>
-