389390391392393394395396
} protected void checkJBossXBException(Class<? extends Throwable> expected, Throwable throwable) { checkThrowable(JBossXBException.class, throwable); JBossXBException e = (JBossXBException) throwable; checkThrowable(expected, e.getCause()); }
273274275276277278279280
919293949596979899100101
{ parser = saxFactory.newSAXParser(); } catch(Exception e) { throw new JBossXBException("Failed to create a new SAX parser", e); } try { reader = parser.getXMLReader();
160161162163164165166167
reader.parse(systemId); } catch(Exception e) { e.printStackTrace(); throw new JBossXBException("Failed to parse source: " + getLocationAsString(systemId), e); } }
174175176177178179180181
{ reader.parse(new InputSource(is)); } catch(Exception e) { throw new JBossXBException("Failed to parse source: " + e.getMessage(), e); } }
188189190191192193194195
{ this.reader.parse(new InputSource(reader)); } catch(Exception e) { throw new JBossXBException("Failed to parse source: " + e.getMessage(), e); } }
9293949596979899100101102
parser = saxFactory.newSAXParser(); logParserInfo(); } catch(Exception e) { throw new JBossXBException("Failed to create a new SAX parser", e); } try { reader = parser.getXMLReader();
172173174175176177178179
{ reader.parse(systemId); } catch(Throwable e) { throw new JBossXBException("Failed to parse source: " + getLocationAsString(systemId), e); } }
198199200201202203204205
{ reader.parse(source); } catch(Throwable e) { throw new JBossXBException("Failed to parse source: " + e.getMessage(), e); } }