Class EconomyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
me.lokka30.treasury.api.common.response.TreasuryException
me.lokka30.treasury.api.economy.response.EconomyException
- All Implemented Interfaces:
Serializable
An exception for economic problems.
For performance reasons, this exception does not fill in the stack trace.
- Since:
- v1.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionEconomyException
(@NotNull FailureReason reason) Construct a newEconomyException
.EconomyException
(@NotNull FailureReason reason, @NotNull String message) Construct a newEconomyException
.EconomyException
(@NotNull FailureReason reason, @NotNull String message, @Nullable Throwable cause) Construct a newEconomyException
.EconomyException
(@NotNull FailureReason reason, @NotNull Throwable cause) Construct a newEconomyException
. -
Method Summary
Methods inherited from class me.lokka30.treasury.api.common.response.TreasuryException
getMessage, getReason
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EconomyException
Construct a newEconomyException
.- Parameters:
reason
- theFailureReason
representing the reason for failure- Since:
- v1.0.0
-
EconomyException
Construct a newEconomyException
.- Parameters:
reason
- theFailureReason
representing the reason for failuremessage
- a more detailed description of the problem- Since:
- v1.0.0
-
EconomyException
Construct a newEconomyException
.- Parameters:
reason
- theFailureReason
representing the reason for failurecause
- theThrowable
representing or causing the problem- Since:
- v1.0.0
-
EconomyException
public EconomyException(@NotNull @NotNull FailureReason reason, @NotNull @NotNull String message, @Nullable @Nullable Throwable cause) Construct a newEconomyException
.- Parameters:
reason
- theFailureReason
representing the reason for failuremessage
- a more detailed description of the problemcause
- theThrowable
representing or causing the problem- Since:
- v1.0.0
-