Package com.patelheet.capitalengine.api
Enum Class Failure
- All Implemented Interfaces:
Serializable,Comparable<Failure>,Constable
Why a mutation failed. New values are only ever added at the end.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe owner denied this plugin from moving money this way.The reference was already used by this plugin;TxResult.txId()is the existing transaction.Core can't reach its database right now.An account would go below zero.Unexpected error inside core.Zero, negative or overflowing amount, or a bad type/memo.An account doesn't exist.Not a failure.Tried to take money out of another plugin's account, or out of the Treasury directly.The caller's owner-set daily limit would be exceeded. -
Method Summary
-
Enum Constant Details
-
NONE
Not a failure. -
INSUFFICIENT_FUNDS
An account would go below zero. -
POLICY_LIMIT
The caller's owner-set daily limit would be exceeded. -
DENIED
The owner denied this plugin from moving money this way. -
INVALID_AMOUNT
Zero, negative or overflowing amount, or a bad type/memo. -
NO_ACCOUNT
An account doesn't exist. -
NOT_ACCOUNT_OWNER
Tried to take money out of another plugin's account, or out of the Treasury directly. -
DUPLICATE_REFERENCE
The reference was already used by this plugin;TxResult.txId()is the existing transaction. Treat as success. -
ECONOMY_PAUSED
Core can't reach its database right now. -
INTERNAL
Unexpected error inside core.
-
-
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
-