code: public void warning(Throwable error, Map<String, Object> custom) {
      warning(error, custom, null);
    }
docs: Record a warning error with extra information attached.
  
  @param error  the error.
  @param custom the extra information.