EndException
From REALbasicWiki
Contents |
[edit] Superclass
EndException inherits from RuntimeException. EndExceptions are raised when the global Quit method is called.
[edit] Interfaces
None
[edit] Summary
[edit] Methods
None
[edit] Properties
None
[edit] Events
None
[edit] Discussion
To quit a running application, the REALbasic framework raises and catches an EndException. This allows the calling stack to be unwound using the mechanism in place for handling exceptions. Usually, you should not see an EndException; for example, App.UnhandledException is not called for EndExceptions. But you will see them in your exception handlers, so generic exception-handling code must anticipate EndExceptions. Usually, you would want to not log or otherwise handle them, except to reraise them.
[edit] Sample Code
Sub LogException(oops as RuntimeException)
if oops isA EndException then
return
else
//logging code goes here
end if
End Sub
