code: public static SQLException mapSQLException(SQLException se, Object mapper) {
          return (SQLException) mapException(se, null, mapper, true);
      }
docs: Translates a SQLException from the database. Exception mapping code is
  now consolidated into AdapterUtil.mapException.
  
  @param SQLException se - the SQLException from the database
  
  @param mapper the managed connection or managed connection factory capable of
  mapping the exception. If this value is NULL, then exception mapping is
  not performed. If stale statement handling or connection error handling
  is required then the managed connection must be supplied.
  
  @return SQLException - the mapped SQLException