java.io.Serializable
public class AccountTypeException
extends java.lang.RuntimeException
AccountType
matches the one provided in getRequiredType()
Constructor | Description |
---|---|
AccountTypeException(AccountType requiredType) |
Creates a new AccountTypeException instance
|
AccountTypeException(AccountType requiredType,
java.lang.String message) |
Creates a new AccountTypeException instance
|
Modifier and Type | Method | Description |
---|---|---|
static void |
check(AccountType actualType,
AccountType requiredType) |
|
AccountType |
getRequiredType() |
The required
AccountType for the operation |
public AccountTypeException(AccountType requiredType)
requiredType
- The required AccountType
for the operationpublic AccountTypeException(AccountType requiredType, java.lang.String message)
requiredType
- The required AccountType
for the operationmessage
- A specialized messagepublic AccountType getRequiredType()
AccountType
for the operationpublic static void check(AccountType actualType, AccountType requiredType)