public ExceptionToResourceMapping addMapping(Class<? extends Throwable> clazz, int msgId) {
        throwableToMsgIdMap.put(clazz, msgId);
        return this;
    }
Mapping without checking the cause (done in mapThrowable).
EventBus/src/org/greenrobot/eventbus/util/ExceptionToResourceMapping.java