Enum Class CoreErrorCode
- All Implemented Interfaces:
Serializable,Comparable<CoreErrorCode>,Constable
Core error codes enum.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTransfer already canceled.Already favorite transfer error.Already signed error.Can't do the transfer error.Can't sign error.Currency must be EUR error.Entity not found.Exceeded limits error.Forbidden error.Incorrect IBAN error.Internation transfer error.International transfer as SEPA.Invalid currency.Ivalid currency for international transfer.IBAN not correspond BIC error.Phone must be national error.Required fields error. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CoreErrorCodegetByCoreErrorCode(Integer coreErrorCode) Get the CoreErrorCode that contain the parameter in "coreErrorCodeList" property.static CoreErrorCodeReturns the enum constant of this class with the specified name.static CoreErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CAN_NOT_DO_THE_TRANSFER
Can't do the transfer error. -
REQUIRED_FIELDS
Required fields error. -
CAN_NOT_SIGN
Can't sign error. -
ALREADY_SIGNED
Already signed error. -
EXCEEDED_LIMITS
Exceeded limits error. -
ALREADY_FAVORITE_TRANSFER
Already favorite transfer error. -
INTERNATIONAL_TRANSFER
Internation transfer error. -
INCORRECT_IBAN
Incorrect IBAN error. -
NOT_CORRESPONDED_BIC
IBAN not correspond BIC error. -
CURRENCY_MUST_BE_EUR
Currency must be EUR error. -
PHONE_MUST_BE_NATIONAL
Phone must be national error. -
FORBIDDEN
Forbidden error. -
ENTITY_NOT_FOUND
Entity not found. -
ALREADY_CANCELLED
Transfer already canceled. -
INVALID_CURRENCY
Invalid currency. -
INTERNATIONAL_TRANSFER_AS_SEPA
International transfer as SEPA. -
INVALID_CURRENCY_FOR_INTERNATIONAL_TRANSFER
Ivalid currency for international transfer.
-
-
Field Details
-
coreErrorCodesList
Core error codes list. -
exceptionTypeClass
private final Class<? extends es.kukenan.smartfi.common.service.exceptions.KukenanWalletException> exceptionTypeClassException type class. -
exceptionCode
Exception code. -
errorMessage
Error message.
-
-
Constructor Details
-
CoreErrorCode
private CoreErrorCode(List<Integer> coreErrorCodesList, Class<? extends es.kukenan.smartfi.common.service.exceptions.KukenanWalletException> exceptionTypeClass, String exceptionCode, String errorMessage) Default constructor.- Parameters:
coreErrorCodesList- Core error codes listexceptionTypeClass- Exception type classexceptionCode- Exception codeerrorMessage- Error message
-
-
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
-
getByCoreErrorCode
Get the CoreErrorCode that contain the parameter in "coreErrorCodeList" property. If the parameter is not found, null is returned.- Parameters:
coreErrorCode- Core error code- Returns:
- The CoreErrorCode
-