Example usage for org.apache.commons.lang.exception NestableError NestableError

List of usage examples for org.apache.commons.lang.exception NestableError NestableError

Introduction

In this page you can find the example usage for org.apache.commons.lang.exception NestableError NestableError.

Prototype

public NestableError(Throwable cause) 

Source Link

Document

Constructs a new NestableError with specified nested Throwable.

Usage

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);
    }
}