add method

void add(
  1. Throwable exception,
  2. ExitCodeExceptionHandler mapper
)

Adds a single ExitCodeExceptionHandler for a given exception.

Example:

generators.add(MyException(), MyMapper());

Implementation

void add(Throwable exception, ExitCodeExceptionHandler mapper) {
  addGenerator(_MappedExitCodeGenerator(exception, mapper));
}