protected void setResult(String pResult) throws SAXException { final String s = pResult.trim(); if (s.length() == 0) { return; } try { super.setResult(f.parseObject(s)); } catch (ParseException e) { final String msg; int offset = e.getErrorOffset(); if (e.getErrorOffset() == -1) { msg = "Failed to parse date value: " + pResult; } else { msg = "Failed to parse date value " + pResult + " at position " + offset; } throw new SAXParseException(msg, getDocumentLocator(), e); } } }
protected void setResult(String pResult) throws SAXException { final String s = pResult.trim(); if (s.length() == 0) { return; } try { super.setResult(f.parseObject(s)); } catch (ParseException e) { final String msg; int offset = e.getErrorOffset(); if (e.getErrorOffset() == -1) { msg = "Failed to parse date value: " + pResult; } else { msg = "Failed to parse date value " + pResult + " at position " + offset; } throw new SAXParseException(msg, getDocumentLocator(), e); } } }
protected void setResult(String pResult) throws SAXException { final String s = pResult.trim(); if (s.length() == 0) { return; } try { super.setResult(f.parseObject(s)); } catch (ParseException e) { final String msg; int offset = e.getErrorOffset(); if (e.getErrorOffset() == -1) { msg = "Failed to parse date value: " + pResult; } else { msg = "Failed to parse date value " + pResult + " at position " + offset; } throw new SAXParseException(msg, getDocumentLocator(), e); } } }