Class AccountTypeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AccountTypeException
    extends java.lang.RuntimeException
    Indicates that an operation is not possible unless the AccountType matches the one provided in getRequiredType()
    See Also:
    Serialized Form
    • 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 required AccountType for the operation
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AccountTypeException

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

        public AccountTypeException​(AccountType requiredType,
                                    java.lang.String message)
        Creates a new AccountTypeException instance
        Parameters:
        requiredType - The required AccountType for the operation
        message - A specialized message