/** * Reports an error to the user, and asks if s/he wants * to recover. If the canRecover flag is false, regardless * of the client instruction, an exception will be thrown. * * Only if the flag is true and the user wants to recover from an error, * the method returns normally. * * The thrown exception will be catched by the unmarshaller. */ public void handleEvent(ValidationEvent event, boolean canRecover ) throws SAXException { ValidationEventHandler eventHandler = parent.getEventHandler(); boolean recover = eventHandler.handleEvent(event); // if the handler says "abort", we will not return the object // from the unmarshaller.getResult() if(!recover) aborted = true; if( !canRecover || !recover ) throw new SAXParseException2( event.getMessage(), locator, new UnmarshalException( event.getMessage(), event.getLinkedException() ) ); }
public Throwable getCause() { return getException(); } }
/** * Reports an error to the user, and asks if s/he wants * to recover. If the canRecover flag is false, regardless * of the client instruction, an exception will be thrown. * * Only if the flag is true and the user wants to recover from an error, * the method returns normally. * * The thrown exception will be catched by the unmarshaller. */ public void handleEvent(ValidationEvent event, boolean canRecover ) throws SAXException { ValidationEventHandler eventHandler = parent.getEventHandler(); boolean recover = eventHandler.handleEvent(event); // if the handler says "abort", we will not return the object // from the unmarshaller.getResult() if(!recover) aborted = true; if( !canRecover || !recover ) throw new SAXParseException2( event.getMessage(), locator, new UnmarshalException( event.getMessage(), event.getLinkedException() ) ); }
public Throwable getCause() { return getException(); } }
/** * @param loc * can be null if the location is unknown */ public final void error( Locator loc, String msg ) { error( new SAXParseException2(msg,loc) ); }
public Throwable getCause() { return getException(); } }
/** * @param loc * can be null if the location is unknown */ public final void error( Locator loc, String msg ) { error( new SAXParseException2(msg,loc) ); }
/** * @param loc * can be null if the location is unknown */ public final void error( Locator loc, String msg ) { error( new SAXParseException2(msg,loc) ); }
/** * @param loc * can be null if the location is unknown */ public final void error( Locator loc, String msg ) { error( new SAXParseException2(msg,loc) ); }
/** * @param loc * can be null if the location is unknown */ public final void error( Locator loc, String msg ) { error( new SAXParseException2(msg,loc) ); }
/** * @param loc * can be null if the location is unknown */ public final void error( Locator loc, String msg ) { error( new SAXParseException2(msg,loc) ); }
/** * @param loc * can be null if the location is unknown */ public final void error( Locator loc, String msg ) { error( new SAXParseException2(msg,loc) ); }
/** * @param loc * can be null if the location is unknown */ public final void error( Locator loc, String msg ) { error( new SAXParseException2(msg,loc) ); }
/** * @param loc * can be null if the location is unknown */ public final void error( Locator loc, String msg ) { error( new SAXParseException2(msg,loc) ); }
public final void error( Locator loc, String msg, Exception e ) { error( new SAXParseException2(msg,loc,e) ); }
public final void error( Locator loc, String msg, Exception e ) { error( new SAXParseException2(msg,loc,e) ); }
public final void error( String msg, Exception e ) { error( new SAXParseException2(msg,null,e) ); }
public final void error( String msg, Exception e ) { error( new SAXParseException2(msg,null,e) ); }
public final void error( Locator loc, String msg, Exception e ) { error( new SAXParseException2(msg,loc,e) ); }
public final void error( String msg, Exception e ) { error( new SAXParseException2(msg,null,e) ); }