Package org.apache.commons.lang.exception

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


            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


            if (realEx instanceof Error) {
                throw (Error)realEx;
            }

            throw new NestableRuntimeException(realEx);
        }
        this.finishedDocument = true;
    }
View Full Code Here

            if (realEx instanceof Error) {
                throw (Error)realEx;
            }

            throw new NestableRuntimeException(realEx);
        }
        this.finishedDocument = true;
    }
View Full Code Here

                        out.write((char) value);
                        unicode.setLength(0);
                        inUnicode = false;
                        hadSlash = false;
                    } catch (NumberFormatException nfe) {
                        throw new NestableRuntimeException("Unable to parse unicode value: " + unicode, nfe);
                    }
                }
                continue;
            }
            if (hadSlash) {
View Full Code Here

        }
        catch ( NamingException e )
        {
            e.printStackTrace();

            throw new NestableRuntimeException( e );
        }

        testEntries.add( attributes );

        // -------------------------------------------------------------------
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

        Context ctx = null;
        try {
            ctx = new InitialContext();
            return ctx.lookup(name);
        } catch (NamingException ne) {
            throw new NestableRuntimeException(
                _loc.get("naming-err", name).getMessage(), ne);
        } finally {
            if (ctx != null)
                try { ctx.close(); } catch (Exception e) {}
        }
View Full Code Here

                try {
                    context.setSuperBinding(context.getLocalLibrary().getBinding(configElm.getAttribute("extends")));

                } catch(LibraryException e) {
                    // throw new RuntimeException("Error extending binding! (at "+DomHelper.getLocation(configElm)+")", e);
                    throw new NestableRuntimeException("Error extending binding! (at " + DomHelper.getLocation(configElm) + ")", e);
                }
            } else {
                context.setSuperBinding(null);
            }
View Full Code Here

      } else {
        try {
          return !this.enclosingLibrary.dependenciesHaveChanged();
        } catch(Exception e) {
          logger.error("Error checking dependencies!",e);
          throw new NestableRuntimeException("Error checking dependencies!",e);
        }
      }
    }
View Full Code Here

            final InputSource source = this.resolveEntity(base, publicId, systemId);
            return new JaxpInput(source);
        } catch (Exception exception) {
            String message = "Exception resolving resource " + systemId;
            Throwable err = new LSException(DOMError.SEVERITY_FATAL_ERROR, message);
            throw new NestableRuntimeException(message, err);
        }
    }
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.