Applications based on the UIM framework have error and exception handling functions. The usage is slightly different from those in D. Errors are caught and displayed or logged. Uncaught exceptions are automatically rendered into error pages.

The Exception class from D is continued in the UM Framework as UIMException. The Error class in D is retained, but the UIMError class is also introduced.

Exception handling options

Exception handling in uim provides several ways to customize exception handling. Each approach has different levels of control over the exception handling process.

  • Listen to events
    This allows you to be notified of events when errors and exceptions have been handled.
  • Custom Templates
    This allows rendered view templates to be modified like any other template in the application.
  • Custom controller
    This can be used to control how exception pages are rendered.
  • Custom ExceptionRenderer
    This can be used to control how exception pages and logging are done.
  • Create and register traps
    This gives complete control over how errors and exceptions are handled, logged, and rendered.