code: public Object parseObject(String source, ParsePosition pos)
      {
  
          try
          {
              return parse(source, pos);
          } catch (ParseException e)
          {
              pos.setIndex(0);
              pos.setErrorIndex(e.getErrorOffset());
          }
          return null;
  
      }
docs: /*
  (non-Javadoc)
  
  @see java.text.Format#parseObject(java.lang.String,
  java.text.ParsePosition)