Example usage for org.xml.sax SAXParseException fillInStackTrace

List of usage examples for org.xml.sax SAXParseException fillInStackTrace

Introduction

In this page you can find the example usage for org.xml.sax SAXParseException fillInStackTrace.

Prototype

public synchronized Throwable fillInStackTrace() 

Source Link

Document

Fills in the execution stack trace.

Usage

From source file:fr.lifl.xmlutils.ConfiguratorErrorHandler.java

public void error(SAXParseException arg0) throws SAXException {
    log.error(arg0.getLocalizedMessage(), arg0);
    arg0.fillInStackTrace();
    throw arg0;//from   w w  w .  j a v a 2  s. c o m
}

From source file:fr.lifl.xmlutils.ConfiguratorErrorHandler.java

public void fatalError(SAXParseException arg0) throws SAXException {
    log.fatal(arg0.getLocalizedMessage(), arg0);
    arg0.fillInStackTrace();
    throw arg0;// w ww.  j a v  a 2  s  . c  o m
}