Enum PostingErrorCode
- java.lang.Object
-
- java.lang.Enum<PostingErrorCode>
-
- de.adorsys.ledgers.util.exception.PostingErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<PostingErrorCode>
public enum PostingErrorCode extends Enum<PostingErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASE_LINE_TIME_ERRORCHART_OF_ACCOUNT_NOT_FOUNDDOBLE_ENTRY_ERRORLEDGER_ACCOUNT_NOT_FOUNDLEDGER_NOT_FOUNDNO_CATEGORYNOT_ENOUGH_INFOPOSTING_NOT_FOUNDPOSTING_TIME_MISSING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PostingErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static PostingErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEDGER_ACCOUNT_NOT_FOUND
public static final PostingErrorCode LEDGER_ACCOUNT_NOT_FOUND
-
LEDGER_NOT_FOUND
public static final PostingErrorCode LEDGER_NOT_FOUND
-
POSTING_NOT_FOUND
public static final PostingErrorCode POSTING_NOT_FOUND
-
DOBLE_ENTRY_ERROR
public static final PostingErrorCode DOBLE_ENTRY_ERROR
-
BASE_LINE_TIME_ERROR
public static final PostingErrorCode BASE_LINE_TIME_ERROR
-
POSTING_TIME_MISSING
public static final PostingErrorCode POSTING_TIME_MISSING
-
NOT_ENOUGH_INFO
public static final PostingErrorCode NOT_ENOUGH_INFO
-
NO_CATEGORY
public static final PostingErrorCode NO_CATEGORY
-
CHART_OF_ACCOUNT_NOT_FOUND
public static final PostingErrorCode CHART_OF_ACCOUNT_NOT_FOUND
-
-
Method Detail
-
values
public static PostingErrorCode[] 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 (PostingErrorCode c : PostingErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PostingErrorCode 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
-
-