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.RuntimeException
Indicates that an operation is not possible unless theAccountType
matches 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 void
check(AccountType actualType, AccountType requiredType)
AccountType
getRequiredType()
The requiredAccountType
for the operation
-
-
-
Constructor Detail
-
AccountTypeException
public AccountTypeException(AccountType requiredType)
Creates a new AccountTypeException instance- Parameters:
requiredType
- The requiredAccountType
for the operation
-
AccountTypeException
public AccountTypeException(AccountType requiredType, java.lang.String message)
Creates a new AccountTypeException instance- Parameters:
requiredType
- The requiredAccountType
for the operationmessage
- A specialized message
-
-
Method Detail
-
getRequiredType
public AccountType getRequiredType()
The requiredAccountType
for the operation- Returns:
- AccountType
-
check
public static void check(AccountType actualType, AccountType requiredType)
-
-