Enum LedgersErrorCode
- java.lang.Object
-
- java.lang.Enum<LedgersErrorCode>
-
- de.adorsys.aspsp.xs2a.connector.spi.impl.LedgersErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<LedgersErrorCode>
public enum LedgersErrorCode extends Enum<LedgersErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSUFFICIENT_FUNDSPSU_AUTH_ATTEMPT_INVALIDREQUEST_VALIDATION_FAILURESCA_VALIDATION_ATTEMPT_FAILED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<LedgersErrorCode>getFromString(String errorCode)static LedgersErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static LedgersErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUEST_VALIDATION_FAILURE
public static final LedgersErrorCode REQUEST_VALIDATION_FAILURE
-
INSUFFICIENT_FUNDS
public static final LedgersErrorCode INSUFFICIENT_FUNDS
-
SCA_VALIDATION_ATTEMPT_FAILED
public static final LedgersErrorCode SCA_VALIDATION_ATTEMPT_FAILED
-
PSU_AUTH_ATTEMPT_INVALID
public static final LedgersErrorCode PSU_AUTH_ATTEMPT_INVALID
-
-
Method Detail
-
values
public static LedgersErrorCode[] 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 (LedgersErrorCode c : LedgersErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LedgersErrorCode 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
-
getFromString
public static Optional<LedgersErrorCode> getFromString(String errorCode)
-
-