Class EconomyException

All Implemented Interfaces:
Serializable

public class EconomyException extends TreasuryException
An exception for economic problems.

For performance reasons, this exception does not fill in the stack trace.

Since:
v1.0.0
See Also:
  • Constructor Details

    • EconomyException

      public EconomyException(@NotNull @NotNull FailureReason reason)
      Construct a new EconomyException.
      Parameters:
      reason - the FailureReason representing the reason for failure
      Since:
      v1.0.0
    • EconomyException

      public EconomyException(@NotNull @NotNull FailureReason reason, @NotNull @NotNull String message)
      Construct a new EconomyException.
      Parameters:
      reason - the FailureReason representing the reason for failure
      message - a more detailed description of the problem
      Since:
      v1.0.0
    • EconomyException

      public EconomyException(@NotNull @NotNull FailureReason reason, @NotNull @NotNull Throwable cause)
      Construct a new EconomyException.
      Parameters:
      reason - the FailureReason representing the reason for failure
      cause - the Throwable 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 new EconomyException.
      Parameters:
      reason - the FailureReason representing the reason for failure
      message - a more detailed description of the problem
      cause - the Throwable representing or causing the problem
      Since:
      v1.0.0