List of usage examples for org.apache.commons.lang.exception NestableError NestableError
public NestableError(Throwable cause)
NestableError
with specified nested Throwable
. From source file:org.wikipedia.vlsergey.secretary.utils.AbstractDocumentBuilderPool.java
public DocumentBuilder borrow() throws ParserConfigurationException { try {//from www . j a v a2 s .c o m return pool.borrowObject(); } catch (ParserConfigurationException exc) { throw exc; } catch (RuntimeException exc) { throw exc; } catch (Exception exc) { log.error(exc.getMessage(), exc); throw new NestableError(exc); } }
From source file:org.wikipedia.vlsergey.secretary.utils.AbstractDocumentBuilderPool.java
public void returnObject(DocumentBuilder documentBuilder) { try {// w ww . j a v a2 s . c o m pool.returnObject(documentBuilder); } catch (RuntimeException exc) { throw exc; } catch (Exception exc) { log.error(exc.getMessage(), exc); throw new NestableError(exc); } }