List of usage examples for javax.xml.stream XMLStreamException getCause
public synchronized Throwable getCause()
From source file:org.osaf.cosmo.eim.eimml.EimmlStreamReader.java
/** * Returns the next recordset in the stream. Returns null * if there are no more recordsets in the stream. *///from w ww . j a v a2s . co m public EimRecordSet nextRecordSet() throws EimmlStreamException { try { return readNextRecordSet(); } catch (XMLStreamException e) { close(); throw new EimmlStreamException("Error reading next recordset", e); } catch (RuntimeException e) { close(); Throwable t = e.getCause(); if (t != null && t instanceof XMLStreamException) throw new EimmlStreamException("Error reading next recordset", t); throw e; } }