code: @Override
      public void uncaughtException(final Thread t, final Throwable e) {
          // e.printStackTrace();
          if (e instanceof Exception) {
              LOGGER.error(UNCAUGHT_EXCEPTION, e, e.getMessage());
          } else {
              LOGGER.error(UNKNOWN_UNCAUGHT_EXCEPTION, e.getClass().getCanonicalName(), e.getMessage());
          }
  
      }
docs: {@inheritDoc}