Class UserException

    • Constructor Summary

      Constructors 
      Constructor Description
      UserException()
      Constructs a UserException with reason = 0.
      UserException​(short reason)
      Constructs a UserException with the specified reason.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void throwIt​(short reason)
      Throws an instance of UserException with the specified reason.
      • 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

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

      • UserException

        public UserException()
        Constructs a UserException with reason = 0.
      • UserException

        public UserException​(short reason)
        Constructs a UserException with the specified reason.
        Parameters:
        reason - the reason for the exception.
    • Method Detail

      • throwIt

        public static void throwIt​(short reason)
                            throws UserException
        Throws an instance of UserException with the specified reason.
        Parameters:
        reason - the reason for the exception.
        Throws:
        UserException - always.