Package org.apache.commons.lang.exception

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


        try {
            return AccessController.doPrivileged(
                J2DoPrivHelper.newFileOutputStreamAction(
                    getFile(file, loader)));
        } catch (PrivilegedActionException pae) {
            throw new NestableRuntimeException(pae.getException());
        } catch (IOException ioe) {
            throw new NestableRuntimeException(ioe);
        }
    }
View Full Code Here


            return AccessController.doPrivileged(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())
                log.error(_loc.get("plugin-creation-exception", val), re);
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

   */
  public void flush() {
    try {
      this.tos.flush();
    } catch (IOException e) {
      throw new NestableRuntimeException(e);
    }
  }
View Full Code Here

 
  public void close() throws IOException {
    try {
      this.tos.close();
    } catch (IOException e) {
      throw new NestableRuntimeException(e);
    }
  }
View Full Code Here

 
  public void writeBytes(byte[] value) {
    try {
      this.tos.writeBytes(value);
    } catch (IOException e) {
      throw new NestableRuntimeException(e);
    }
  }
View Full Code Here

 
  public void writeBytes(int value, int length) {
    try {
      this.tos.writeBytes(value, length);
    } catch (IOException e) {
      throw new NestableRuntimeException(e);
    }
  }
View Full Code Here

  public void writeBytes(byte[] value, int offset, int length) {
    try {
      this.tos.writeBytes(value, offset, length);
    } catch (IOException e) {
      throw new NestableRuntimeException(e);
    }
  }
View Full Code Here

 
  public void writeInt(int value, int length) {
    try {
      this.tos.writeInt(value, length);
    } catch (IOException e) {
      throw new NestableRuntimeException(e);
    }
  }
View Full Code Here

 
  public void writeLong(long value, int length) {
    try {
      this.tos.writeLong(value, length);
    } catch (IOException e) {
      throw new NestableRuntimeException(e);
    }
  }
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.