public class AccountTypeException
extends java.lang.RuntimeException
AccountType
matches the one provided in getRequiredType()| Constructor and 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 and Description |
|---|---|
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 operation