Class AccountTypeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.dv8tion.jda.api.exceptions.AccountTypeException
All Implemented Interfaces:
Serializable

public class AccountTypeException extends RuntimeException
Indicates that an operation is not possible unless the AccountType matches the one provided in getRequiredType()
See Also:
  • Constructor Details

    • AccountTypeException

      public AccountTypeException(AccountType requiredType)
      Creates a new AccountTypeException instance
      Parameters:
      requiredType - The required AccountType for the operation
    • AccountTypeException

      public AccountTypeException(AccountType requiredType, String message)
      Creates a new AccountTypeException instance
      Parameters:
      requiredType - The required AccountType for the operation
      message - A specialized message
  • Method Details