Package net.dv8tion.jda.api.exceptions
Class AccountTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.dv8tion.jda.api.exceptions.AccountTypeException
-
- All Implemented Interfaces:
java.io.Serializable
public class AccountTypeException extends java.lang.RuntimeExceptionIndicates that an operation is not possible unless theAccountTypematches the one provided ingetRequiredType()- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccountTypeException(AccountType requiredType)Creates a new AccountTypeException instanceAccountTypeException(AccountType requiredType, java.lang.String message)Creates a new AccountTypeException instance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheck(AccountType actualType, AccountType requiredType)AccountTypegetRequiredType()The requiredAccountTypefor the operation
-
-
-
Constructor Detail
-
AccountTypeException
public AccountTypeException(AccountType requiredType)
Creates a new AccountTypeException instance- Parameters:
requiredType- The requiredAccountTypefor the operation
-
AccountTypeException
public AccountTypeException(AccountType requiredType, java.lang.String message)
Creates a new AccountTypeException instance- Parameters:
requiredType- The requiredAccountTypefor the operationmessage- A specialized message
-
-
Method Detail
-
getRequiredType
public AccountType getRequiredType()
The requiredAccountTypefor the operation- Returns:
- AccountType
-
check
public static void check(AccountType actualType, AccountType requiredType)
-
-