code: public void handleException(Throwable e) {
      while (e instanceof InvocationTargetException) {
        e = ((InvocationTargetException) e).getTargetException();
      }
  
      if (e instanceof SQLException) {
        handleSQLException((SQLException) e);
      } else if (e instanceof WrappedSqlException) {
        handleSQLException((SQLException) e.getCause());
      } else if (!initComplete && !getOpts().getVerbose()) {
        // all init errors must be verbose
        if (e.getMessage() == null) {
          error(e.getClass().getName());
        } else {
          error(e.getMessage());
        }
      } else {
        e.printStackTrace(getErrorStream());
      }
    }
docs: /////////////////////////////