Package com.xero.models.bankfeeds
Enum Error.TypeEnum
- java.lang.Object
-
- java.lang.Enum<Error.TypeEnum>
-
- com.xero.models.bankfeeds.Error.TypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<Error.TypeEnum>
- Enclosing class:
- Error
public static enum Error.TypeEnum extends Enum<Error.TypeEnum>
Identifies the type of error.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNT_NOT_VALIDACCOUNT_NOT_VALIDBANK_FEED_NOT_FOUNDBANK_FEED_NOT_FOUNDDUPLICATE_STATEMENTDUPLICATE_STATEMENTFEED_ALREADY_CONNECTED_IN_CURRENT_ORGANISATIONFEED_ALREADY_CONNECTED_IN_CURRENT_ORGANISATIONFEED_ALREADY_CONNECTED_IN_DIFFERENT_ORGANISATIONFEED_ALREADY_CONNECTED_IN_DIFFERENT_ORGANISATIONFEED_CONNECTED_IN_DIFFERENT_ORGANISATIONFEED_CONNECTED_IN_DIFFERENT_ORGANISATIONFEED_NOT_FOUND_OR_ALREADY_DELETEDFEED_NOT_FOUND_OR_ALREADY_DELETEDINTERNAL_ERRORINTERNAL_ERRORINVALID_APPLICATIONINVALID_APPLICATIONINVALID_COUNTRY_SPECIFIEDINVALID_COUNTRY_SPECIFIEDINVALID_END_BALANCEINVALID_END_BALANCEINVALID_END_DATEINVALID_END_DATEINVALID_FEED_CONNECTIONINVALID_FEED_CONNECTIONINVALID_FEED_CONNECTION_FOR_ORGANISATIONINVALID_FEED_CONNECTION_FOR_ORGANISATIONINVALID_ORGANISATION_BANK_FEEDSINVALID_ORGANISATION_BANK_FEEDSINVALID_ORGANISATION_MULTI_CURRENCYINVALID_ORGANISATION_MULTI_CURRENCYINVALID_REQUESTINVALID_REQUESTINVALID_START_AND_END_DATEINVALID_START_AND_END_DATEINVALID_START_DATEINVALID_START_DATEINVALID_USER_ROLEINVALID_USER_ROLESTATEMENT_NOT_FOUNDSTATEMENT_NOT_FOUND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Error.TypeEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic Error.TypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static Error.TypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_REQUEST
public static final Error.TypeEnum INVALID_REQUEST
INVALID_REQUEST
-
INVALID_APPLICATION
public static final Error.TypeEnum INVALID_APPLICATION
INVALID_APPLICATION
-
INVALID_FEED_CONNECTION
public static final Error.TypeEnum INVALID_FEED_CONNECTION
INVALID_FEED_CONNECTION
-
DUPLICATE_STATEMENT
public static final Error.TypeEnum DUPLICATE_STATEMENT
DUPLICATE_STATEMENT
-
INVALID_END_BALANCE
public static final Error.TypeEnum INVALID_END_BALANCE
INVALID_END_BALANCE
-
INVALID_START_AND_END_DATE
public static final Error.TypeEnum INVALID_START_AND_END_DATE
INVALID_START_AND_END_DATE
-
INVALID_START_DATE
public static final Error.TypeEnum INVALID_START_DATE
INVALID_START_DATE
-
INTERNAL_ERROR
public static final Error.TypeEnum INTERNAL_ERROR
INTERNAL_ERROR
-
FEED_ALREADY_CONNECTED_IN_CURRENT_ORGANISATION
public static final Error.TypeEnum FEED_ALREADY_CONNECTED_IN_CURRENT_ORGANISATION
FEED_ALREADY_CONNECTED_IN_CURRENT_ORGANISATION
-
INVALID_END_DATE
public static final Error.TypeEnum INVALID_END_DATE
INVALID_END_DATE
-
STATEMENT_NOT_FOUND
public static final Error.TypeEnum STATEMENT_NOT_FOUND
STATEMENT_NOT_FOUND
-
FEED_CONNECTED_IN_DIFFERENT_ORGANISATION
public static final Error.TypeEnum FEED_CONNECTED_IN_DIFFERENT_ORGANISATION
FEED_CONNECTED_IN_DIFFERENT_ORGANISATION
-
FEED_ALREADY_CONNECTED_IN_DIFFERENT_ORGANISATION
public static final Error.TypeEnum FEED_ALREADY_CONNECTED_IN_DIFFERENT_ORGANISATION
FEED_ALREADY_CONNECTED_IN_DIFFERENT_ORGANISATION
-
BANK_FEED_NOT_FOUND
public static final Error.TypeEnum BANK_FEED_NOT_FOUND
BANK_FEED_NOT_FOUND
-
INVALID_COUNTRY_SPECIFIED
public static final Error.TypeEnum INVALID_COUNTRY_SPECIFIED
INVALID_COUNTRY_SPECIFIED
-
INVALID_ORGANISATION_BANK_FEEDS
public static final Error.TypeEnum INVALID_ORGANISATION_BANK_FEEDS
INVALID_ORGANISATION_BANK_FEEDS
-
INVALID_ORGANISATION_MULTI_CURRENCY
public static final Error.TypeEnum INVALID_ORGANISATION_MULTI_CURRENCY
INVALID_ORGANISATION_MULTI_CURRENCY
-
INVALID_FEED_CONNECTION_FOR_ORGANISATION
public static final Error.TypeEnum INVALID_FEED_CONNECTION_FOR_ORGANISATION
INVALID_FEED_CONNECTION_FOR_ORGANISATION
-
INVALID_USER_ROLE
public static final Error.TypeEnum INVALID_USER_ROLE
INVALID_USER_ROLE
-
ACCOUNT_NOT_VALID
public static final Error.TypeEnum ACCOUNT_NOT_VALID
ACCOUNT_NOT_VALID
-
FEED_NOT_FOUND_OR_ALREADY_DELETED
public static final Error.TypeEnum FEED_NOT_FOUND_OR_ALREADY_DELETED
FEED_NOT_FOUND_OR_ALREADY_DELETED
-
-
Method Detail
-
values
public static Error.TypeEnum[] 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 (Error.TypeEnum c : Error.TypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Error.TypeEnum 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
-
getValue
public String getValue()
getValue- Returns:
- String value
-
toString
public String toString()
toString- Overrides:
toStringin classEnum<Error.TypeEnum>- Returns:
- String value
-
fromValue
public static Error.TypeEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-