# addExitCodeExceptionHandler method

void addExitCodeExceptionHandler(

1. ExitCodeExceptionHandler handler

)

Adds an exit code exception handler to the list of exit code exception handlers.

Exit code exception handlers are used to handle exceptions and return an exit code.

### Example

    final app = JetApplication();
    app.addExitCodeExceptionHandler(ExitCodeExceptionHandler());

## Implementation

    void addExitCodeExceptionHandler(ExitCodeExceptionHandler handler) {
      _exitCodeExceptionHandlers.add(handler);
    }