referring to this thread
www.b4x.com
should be Application_Error Sub be present in the template for new projects?
Unhandled exceptions
Unhandled exceptions are exceptions that were thrown outside of Try / Catch blocks. Such exceptions cause the process to exit in all cases except of server applications. Starting from B4J v5.0 it is possible to catch such exceptions. This is done with the Application_Error sub (in the Main...