public int getMessageIdForThrowable(final Throwable throwable) {
   Integer resId = mapping.mapThrowable(throwable);
   if (resId != null) {
     return resId;
   } else {
     Log.d(EventBus.TAG, "No specific message ressource ID found for " + throwable);
     return defaultErrorMsgId;
   }
 }
 public ErrorDialogConfig addMapping(Class<? extends Throwable> clazz, int msgId) {
   mapping.addMapping(clazz, msgId);
   return this;
 }