# addAllMappers<T extends ExitCodeExceptionHandler> method

void addAllMappers<T extends ExitCodeExceptionHandler>(

1. Throwable exception,
2. Iterable<T> mappers

)

Adds a collection of ExitCodeExceptionHandlers for a given `exception`.

Each mapper is wrapped in a `_MappedExitCodeGenerator` internally.

Example:

    generators.addAllMappers(
      AppException(),
      [MyMapper()],
    );

## Implementation

    void addAllMappers<T extends ExitCodeExceptionHandler>(Throwable exception, Iterable<T> mappers) {
      for (T mapper in mappers) {
        add(exception, mapper);
      }
    }