@Override public Throwable getCause() { Throwable superCause = super.getCause(); return superCause == null ? this.cause : superCause; }
@Override public Throwable getCause() { Throwable superCause = super.getCause(); return superCause == null ? this.cause : superCause; }
@Override public Throwable getCause() { Throwable superCause = super.getCause(); return superCause == null ? this.cause : superCause; }
@Override public void warning(SAXParseException exception) throws SAXException { logger.log(Level.WARNING, exception.getMessage(), exception.getCause()); }
@Override public void warning(SAXParseException exception) throws SAXException { if (exception.getException() instanceof EclipseLinkException) { throw (EclipseLinkException) exception.getCause(); } } });
public void warning(SAXParseException exception) throws SAXException { if(exception.getException() instanceof EclipseLinkException) { throw (EclipseLinkException) exception.getCause(); } }
@Override public void error(SAXParseException exception) throws SAXException { logger.log(Level.SEVERE, exception.getMessage(), exception.getCause()); throw new WebBeansException(exception); }
@Override public void fatalError(SAXParseException exception) throws SAXException { logger.log(Level.SEVERE, exception.getMessage(), exception.getCause()); throw new WebBeansException(exception); }
@Override public void warning(SAXParseException exception) throws SAXException { if(exception.getException() instanceof EclipseLinkException) { throw (EclipseLinkException) exception.getCause(); } }
private void throwSaxException(Exception e) throws SAXException { SAXParseException se = new SAXParseException(e.getMessage(), (Locator) this, e); if (se.getCause() == null) { se.initCause(e); } if (_errorHandler != null) { _errorHandler.fatalError(se); } throw se; }
private void throwSaxException(Exception e) throws SAXException { SAXParseException se = new SAXParseException(e.getMessage(), (Locator) this, e); if (se.getCause() == null) { se.initCause(e); } if (_errorHandler != null) { _errorHandler.fatalError(se); } throw se; }
private String getInputSource(final SAXParseException ex) { System.out.println(ex.getPublicId()); System.out.println(ex.getSystemId()); System.out.println(ex.getCause()); System.out.println(ex.getLocalizedMessage()); System.out.println(ex.getMessage()); if (ex.getSystemId() != null) { return ex.getSystemId(); } else if (ex.getPublicId() != null) { return ex.getPublicId(); } //try to use the locally stored inputSource return this.theSource; }
private void handleValidationEvent(SAXParseException exception, int severity) throws SAXException { if (!validationEventHandler.handleEvent( new ValidationEventImpl( severity, exception.getMessage(), new ValidationEventLocatorImpl(), exception.getCause()))) throw exception; }
private void handleException(SAXParseException exception, int severity) throws SAXException { ValidationEventLocatorImpl eventLocator = new ValidationEventLocatorImpl(exception); if(exception instanceof MarshalSAXParseException) { eventLocator.setObject(((MarshalSAXParseException) exception).getObject()); } Throwable linkedException = exception.getCause(); if(linkedException instanceof EclipseLinkException) { linkedException = exception.getCause(); } ValidationEvent event = new ValidationEventImpl(severity, exception.getLocalizedMessage(), eventLocator, linkedException); if (!eventHandler.handleEvent(event)) { if(linkedException instanceof EclipseLinkException) { throw (EclipseLinkException) linkedException; } throw exception; } }
private void handleException(SAXParseException exception, int severity) throws SAXException { ValidationEventLocatorImpl eventLocator = new ValidationEventLocatorImpl(exception); if(exception instanceof MarshalSAXParseException) { eventLocator.setObject(((MarshalSAXParseException) exception).getObject()); } Throwable linkedException = exception.getCause(); if(linkedException instanceof EclipseLinkException) { linkedException = exception.getCause(); } ValidationEvent event = new ValidationEventImpl(severity, exception.getLocalizedMessage(), eventLocator, linkedException); if (!eventHandler.handleEvent(event)) { if(linkedException instanceof EclipseLinkException) { throw (EclipseLinkException) linkedException; } throw exception; } }
public void error(SAXParseException e) { if(debug) e.printStackTrace(); hasError = true; if((e.getSystemId() == null && e.getPublicId() == null) && (e.getCause() instanceof UnknownHostException)) { print(WscompileMessages.WSIMPORT_ERROR_MESSAGE(e.toString()), e); } else { print(WscompileMessages.WSIMPORT_ERROR_MESSAGE(e.getMessage()), e); } }
public void error(SAXParseException e) { if(debug) e.printStackTrace(); hasError = true; if((e.getSystemId() == null && e.getPublicId() == null) && (e.getCause() instanceof UnknownHostException)) { print(WscompileMessages.WSIMPORT_ERROR_MESSAGE(e.toString()), e); } else { print(WscompileMessages.WSIMPORT_ERROR_MESSAGE(e.getMessage()), e); } }
public void error(SAXParseException e) { if(debug) e.printStackTrace(); hasError = true; if((e.getSystemId() == null && e.getPublicId() == null) && (e.getCause() instanceof UnknownHostException)) { print(WscompileMessages.WSIMPORT_ERROR_MESSAGE(e.toString()), e); } else { print(WscompileMessages.WSIMPORT_ERROR_MESSAGE(e.getMessage()), e); } }
public void error(SAXParseException e) { if(debug) e.printStackTrace(); hasError = true; if((e.getSystemId() == null && e.getPublicId() == null) && (e.getCause() instanceof UnknownHostException)) { print(WscompileMessages.WSIMPORT_ERROR_MESSAGE(e.toString()), e); } else { print(WscompileMessages.WSIMPORT_ERROR_MESSAGE(e.getMessage()), e); } }