Package de.adorsys.psd2.consent.api
Enum CmsError
- java.lang.Object
-
- java.lang.Enum<CmsError>
-
- de.adorsys.psd2.consent.api.CmsError
-
- All Implemented Interfaces:
Serializable,Comparable<CmsError>
public enum CmsError extends Enum<CmsError>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKSUM_ERRORShould be used in case of wrong AIS consent checksum after definite consent properties were set initially and then are being changed.LOGICAL_ERRORDescribes cases, when the error is caused by the mistakes in business logic (like providing wrong payment ID)TECHNICAL_ERRORDescribes cases, when the error is caused by 3rd party libraries, network errors, etc.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<CmsError>getByName(String name)static CmsErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static CmsError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TECHNICAL_ERROR
public static final CmsError TECHNICAL_ERROR
Describes cases, when the error is caused by 3rd party libraries, network errors, etc.
-
LOGICAL_ERROR
public static final CmsError LOGICAL_ERROR
Describes cases, when the error is caused by the mistakes in business logic (like providing wrong payment ID)
-
CHECKSUM_ERROR
public static final CmsError CHECKSUM_ERROR
Should be used in case of wrong AIS consent checksum after definite consent properties were set initially and then are being changed.
-
-
Method Detail
-
values
public static CmsError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CmsError c : CmsError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsError valueOf(String name)
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
-
-