raise()
Raises the receiver, causing program flow to jump to the local exception handler.
Declaration
func raise()Discussion
When there are no exception handlers in the exception handler stack, unless the exception is raised during the posting of a notification, this method calls the uncaught exception handler, in which last-minute logging can be performed. The program then terminates, regardless of the actions taken by the uncaught exception handler.