Class AppExitException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AppExitException
    extends java.lang.RuntimeException
    This exception is thrown when Event.handleOneEvent() finds an event that requires the application to exit. The main purpose of this event is to unwind the stack all the way back to the main event loop so that the application can exit properly. It is mostly used to exit the VM when a window is open with the popup() method.

    WARNING: DO NOT CATCH THIS EXCEPTION IN YOUR APP UNLESS YOU KNOW WHAT YOU ARE DOING.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AppExitException()
      Constructs an empty Exception.
      AppExitException​(java.lang.String msg)
      Constructs an exception with the given message.
    • Method Summary

      • 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

      • AppExitException

        public AppExitException()
        Constructs an empty Exception.
      • AppExitException

        public AppExitException​(java.lang.String msg)
        Constructs an exception with the given message.
        Parameters:
        msg - The error message.