code: public <T extends Exception, RESP> InternalExceptionHandler putHandler(Class<T> clazz,
                                                                             ExceptionHandlerAction<RESP, T> action,
                                                                             Type<RESP> ex) {
          final InternalExceptionHandler handler = new InternalExceptionHandler(clazz, action, ex);
          handlers.add(handler);
          return handler;
      }
docs: Method registers a new handler to some type of exception.
  
  @param clazz type of the exception to which is handler registered
  @param action action that is performed when the proper exception is thrown
  @param ex thrown exception
  @param <T> type of the thrown exception
  @param <RESP> type of the returned object
  @return registered exception handler