Package org.apache.commons.lang.exception

Examples of org.apache.commons.lang.exception.NestableRuntimeException


                    map.put(source, names.toArray(new String[names.size()]));
                }
                names.clear();
            }
        } catch (Exception e) {
            throw new NestableRuntimeException(
                _loc.get("class-arg", source).getMessage(), e);
        }
        return map;
    }
View Full Code Here


                J2DoPrivHelper.newInstanceAction(cls));
        } catch (Exception e) {
            if (e instanceof PrivilegedActionException) {
                e = ((PrivilegedActionException) e).getException();  
            }
            RuntimeException re = new NestableRuntimeException(_loc.get
                ("obj-create", cls).getMessage(), e);
            if (fatal)
                throw re;
            Log log = (conf == null) ? null : conf.getConfigurationLog();
            if (log != null && log.isErrorEnabled())
View Full Code Here

            Object result = ctx.lookup(name);
            if (result == null && log != null && log.isWarnEnabled())
              log.warn(_loc.get("jndi-lookup-failed", userKey, name));
            return result;
        } catch (NamingException ne) {
            throw new NestableRuntimeException(
                _loc.get("naming-err", name).getMessage(), ne);
        } finally {
            if (ctx != null) {
                try {
                    ctx.close();
View Full Code Here

        {
            setUp();
        }
        catch (Exception e)
        {
            throw new NestableRuntimeException("Error running TestCase setUp().", e);
        }
        try
        {
            runTest();
        }
        catch (AssertionFailedError e)
        { //1
            result.addFailure(this, e);
        }

        catch (Throwable e)
        { // 2
            result.addError(this, e);
        }
        finally
        {
            try
            {
                tearDown();
            }
            catch (Exception e)
            {
                throw new NestableRuntimeException("Error running TestCase tearDown().", e);
            }
        }
    }
View Full Code Here

        {
            setUp();
        }
        catch (Exception e)
        {
            throw new NestableRuntimeException("Error running TestCase setUp().", e);
        }
        try
        {
            runTest();
        }
        catch (AssertionFailedError e)
        { //1
            result.addFailure(this, e);
        }

        catch (Throwable e)
        { // 2
            result.addError(this, e);
        }
        finally
        {
            try
            {
                tearDown();
            }
            catch (Exception e)
            {
                throw new NestableRuntimeException("Error running TestCase tearDown().", e);
            }
        }
    }
View Full Code Here

        {
            setUp();
        }
        catch (Exception e)
        {
            throw new NestableRuntimeException("Error running TestCase setUp().", e);
        }
        try
        {
            runTest();
        }
        catch (AssertionFailedError e)
        { //1
            result.addFailure(this, e);
        }

        catch (Throwable e)
        { // 2
            result.addError(this, e);
        }
        finally
        {
            try
            {
                tearDown();
            }
            catch (Exception e)
            {
                throw new NestableRuntimeException("Error running TestCase tearDown().", e);
            }
        }
    }
View Full Code Here

        {
            hasNext = hasNextRow();
        }
        catch (IOException e)
        {
            throw new NestableRuntimeException(e);
        }

        return hasNext;
    }
View Full Code Here

        {
            nextRow = nextRow();
        }
        catch (IOException e)
        {
            throw new NestableRuntimeException(e);
        }

        return nextRow;
    }
View Full Code Here

        try {
            return m.invoke(_conn, args);
        } catch (Throwable t) {
            if (t instanceof SQLException)
                throw(SQLException) t;
            throw new NestableRuntimeException(_loc.get("invoke-jdbc3")
                .getMessage(), t);
        }
    }
View Full Code Here

        try {
            Method m = Connection.class.getMethod(name, args);
            _jdbc3.put(key, m);
            return m;
        } catch (Throwable t) {
            throw new NestableRuntimeException(_loc.get("error-jdbc3")
                .getMessage(), t);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.lang.exception.NestableRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.