totalcross.sys
Class AppExitException

totalcross.lang.Object
  extended by totalcross.lang.Throwable
      extended by totalcross.lang.Exception
          extended by totalcross.lang.RuntimeException
              extended by totalcross.sys.AppExitException
All Implemented Interfaces:
java.io.Serializable

public class AppExitException
extends totalcross.lang.RuntimeException

This exception is thrown when Event.handleOneEvent() encounteres an event that requires the app 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 app can properly exit. 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
AppExitException()
          Constructs an empty Exception.
AppExitException(String msg)
          Constructs an exception with the given message.
 
Method Summary
 
Methods inherited from class totalcross.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class totalcross.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppExitException

public AppExitException()
Constructs an empty Exception.


AppExitException

public AppExitException(String msg)
Constructs an exception with the given message.