static public SimpleUnit factory(String name) {
    try {
      return factoryWithExceptions(name);
    } catch (Exception e) {
      if (debugParse) System.out.println("Parse " + name + " got Exception " + e);
      return null;
    }
  }
static public SimpleUnit factory ( String name ) { try { return factoryWithExceptions ( name ) ; } catch ( Exception e ) { if ( debugParse ) System . out . println ( "Parse " + name + " got Exception " + e ) ; return null ; } }
Create a SimpleUnit from the given name, catch Exceptions.

@param name parse this name to create a unit.
@return SimpleUnit, DateUnit, TimeUnit, or null if failed
@see ucar.units.UnitFormat#parse