Java 类javax.xml.bind.ParseConversionEvent 实例源码

项目:javacash    文件:AbstractUnmarshallingEventHandlerImpl.java   
/**
 * This method is called by the generated derived class
 * when a datatype parse method throws an exception.
 */
protected void handleParseConversionException(Exception e) throws SAXException {
    if( e instanceof RuntimeException )
        throw (RuntimeException)e;  // don't catch the runtime exception. just let it go.

    // wrap it into a ParseConversionEvent and report it
    ParseConversionEvent pce = new ParseConversionEventImpl(
        ValidationEvent.ERROR, e.getMessage(), 
        new ValidationEventLocatorImpl(context.getLocator()), e );
    context.handleEvent(pce,true);
}
项目:wustl-common-package    文件:AbstractUnmarshallingEventHandlerImpl.java   
/**
 * This method is called by the generated derived class
 * when a datatype parse method throws an exception.
 */
protected void handleParseConversionException(Exception e) throws SAXException {
    if( e instanceof RuntimeException )
        throw (RuntimeException)e;  // don't catch the runtime exception. just let it go.

    // wrap it into a ParseConversionEvent and report it
    ParseConversionEvent pce = new ParseConversionEventImpl(
        ValidationEvent.ERROR, e.getMessage(), 
        new ValidationEventLocatorImpl(context.getLocator()), e );
    context.handleEvent(pce,true);
}