Example usage for javax.xml.stream XMLStreamException XMLStreamException

List of usage examples for javax.xml.stream XMLStreamException XMLStreamException

Introduction

In this page you can find the example usage for javax.xml.stream XMLStreamException XMLStreamException.

Prototype

public XMLStreamException(String msg, Location location, Throwable th) 

Source Link

Document

Construct an exception with the assocated message, exception and location.

Usage

From source file:org.apache.tajo.catalog.store.XMLCatalogSchemaManager.java

protected StoreObject loadCatalogStore(XMLStreamReader xmlReader) throws XMLStreamException {
    try {/*from   ww  w  .j ava  2  s . co m*/
        JAXBElement<StoreObject> elem = unmarshaller.unmarshal(xmlReader, StoreObject.class);
        return elem.getValue();
    } catch (JAXBException e) {
        throw new XMLStreamException(e.getMessage(), xmlReader.getLocation(), e);
    }
}