private static void emitMessage(final String msg, final SAXParseException ex) { LogLog.warn(msg +ex.getLineNumber()+" and column " +ex.getColumnNumber()); LogLog.warn(ex.getMessage(), ex.getException()); } }
if (spe.getException() != null) rootCause = spe.getException(); log("XML parsing error in " + inFile.getAbsolutePath(), Project.MSG_ERR); log("Line number " + spe.getLineNumber());
.getColumnNumber()); Throwable t = exc.getException(); if (t instanceof BuildException) { BuildException be = (BuildException) t;
private void propagateEvent( int severity, SAXParseException saxException ) throws SAXException { ValidationEventImpl ve = new ValidationEventImpl( severity, saxException.getMessage(), getLocation() ); Exception e = saxException.getException(); if( e != null ) { ve.setLinkedException( e ); } else { ve.setLinkedException( saxException ); } // call the client's event handler. If it returns false, then bail-out // and terminate the unmarshal operation. boolean result = handleEvent( ve ); if( ! result ) { // bail-out of the parse with a SAX exception, but convert it into // an UnmarshalException back in in the AbstractUnmarshaller throw saxException; } } }
.getColumnNumber()); Throwable t = exc.getException(); if (t instanceof BuildException) { BuildException be = (BuildException) t;
private static void emitMessage(final String msg, final SAXParseException ex) { LogLog.warn(msg +ex.getLineNumber()+" and column " +ex.getColumnNumber()); LogLog.warn(ex.getMessage(), ex.getException()); } }
private void propagateEvent( int severity, SAXParseException saxException ) throws SAXException { ValidationEventImpl ve = new ValidationEventImpl( severity, saxException.getMessage(), getLocation() ); Exception e = saxException.getException(); if( e != null ) { ve.setLinkedException( e ); } else { ve.setLinkedException( saxException ); } // call the client's event handler. If it returns false, then bail-out // and terminate the unmarshal operation. boolean result = handleEvent( ve ); if( ! result ) { // bail-out of the parse with a SAX exception, but convert it into // an UnmarshalException back in in the AbstractUnmarshaller throw saxException; } } }
@Override public void error(SAXParseException exception) throws SAXException { if(exception.getException() instanceof EclipseLinkException) { throw exception; } }
public void error(SAXParseException exception) throws SAXException { if(exception.getException() instanceof EclipseLinkException) { throw exception; } }
/** * Process FatalError of a SAXParseException. * * @param exception SAXParseException * @throws SAXException rethrow the SAXException */ public void fatalError(SAXParseException exception) throws SAXException { if ((exception.getException() != null) && (exception.getException() instanceof MessageException)) throw (MessageException)exception.getException(); throw new MessageException(exception.getMessage()); }
public void fatalError(SAXParseException exception) throws SAXException { if ((exception.getException() != null) && (exception.getException() instanceof MessageException)) { throw (MessageException)exception.getException(); } else { throw new MessageException(exception.getMessage()); } }
public void error(SAXParseException ex) { LOGGER.error( "Parsing error on line " + ex.getLineNumber() + " and column " + ex.getColumnNumber()); LOGGER.error(ex.getMessage(), ex.getException()); //LogLog.error("pid="+ex.getPublicId()+" sid="+ex.getSystemId()); }
protected XMIException toXMIException(SAXParseException e) { XMIException xmiException = new XMIException (e.getException() == null ? e : e.getException(), e.getSystemId() == null ? getLocation() : e.getSystemId(), e.getLineNumber(), e.getColumnNumber()); return xmiException; }
@Override public void error (SAXParseException e) throws SAXException { XMIException xmi = new XMIException(e.getException() == null ? e : e.getException(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber()); handler.error(xmi); }
@Override public void fatalError (SAXParseException e) throws SAXException { XMIException xmi = new XMIException(e.getException() == null ? e : e.getException(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber()); handler.fatalError(xmi); throw e; }
@Override public void warning(SAXParseException exception) throws SAXException { if(exception.getException() instanceof EclipseLinkException) { throw (EclipseLinkException) exception.getCause(); } }
/** * Constructor. * * @param file file * @param inner SAXParseException */ public SAXExceptionWrapper(final String file, final SAXParseException inner) { super(inner.getMessage(), inner.getPublicId(), inner.getSystemId(), inner.getLineNumber(), inner.getColumnNumber(), inner.getException()); saxParseException = inner; sourceFile = file; }
/** * Creates a new instance of <code>WarningSAXParseException</code> * with the specified existing <code>SAXParseException</code> instance. * * @param e */ public WarningSAXParseException(SAXParseException e) { super(e.getMessage(), e.getPublicId(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber(), e.getException()); }
/** * Creates a new instance of <code>FatalErrorSAXParseException</code> * with the specified existing <code>SAXParseException</code> instance. * * @param e */ public FatalErrorSAXParseException(SAXParseException e) { super(e.getMessage(), e.getPublicId(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber(), e.getException()); }
/** * Creates a new instance of <code>WarningSAXParseException</code> * with the specified existing <code>SAXParseException</code> instance. * * @param e */ public WarningSAXParseException(SAXParseException e) { super(e.getMessage(), e.getPublicId(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber(), e.getException()); }