Package org.jboss.fresh.shell

Examples of org.jboss.fresh.shell.ShellException


  public Object executeAsObject(String cmdline) throws ShellException {
    collide();
    try {
      return shell.executeAsObject(cmdline);
    } catch(RemoteException ex) {
      throw new ShellException(ex);
    } finally {
      done();
    }
  }
View Full Code Here


  public Object executeAsObject(String cmdline, List input) throws ShellException {
    collide();
    try {
      return shell.executeAsObject(cmdline, input);
    } catch(RemoteException ex) {
      throw new ShellException(ex);
    } finally {
      done();
    }
  }
View Full Code Here

  public String getEnvProperty(String propname) throws ShellException {
    collide();
    try {
      return shell.getEnvProperty(propname);
    } catch(RemoteException ex) {
      throw new ShellException(ex);
    } finally {
      done();
    }
  }
View Full Code Here

  public void setEnvProperty(String name, String value) throws ShellException {
    collide();
    try {
      shell.setEnvProperty(name, value);
    } catch(RemoteException ex) {
      throw new ShellException(ex);
    } finally {
      done();
    }
  }
View Full Code Here

  public void close() throws ShellException {
    collide();
    try {
      shell.remove();
    } catch(Exception ex) {
      throw new ShellException(ex);
    } finally {
      done();
    }
  }
View Full Code Here

  public String getSessionID() throws ShellException {
    collide();
    try {
      return shell.getSessionID();
    } catch(RemoteException ex) {
      throw new ShellException(ex);
    } finally {
      done();
    }
  }
View Full Code Here

  public void using() throws ShellException {
    collide();
    try {
      shell.getSessionID();
    } catch(RemoteException ex) {
      throw new ShellException(ex);
    } finally {
      done();
    }
  }
View Full Code Here

                        ex.printStackTrace(pwout);
                        return;
                    }
                } catch (Throwable t) {
                    //log.error(t.getMessage(), t);
                    ShellException ex = new ShellException(t);

                    if (canThrowEx()) {
                        throw ex;
                    } else {
                        ex.printStackTrace(pwout);
                        return;
                    }
                }
            }
View Full Code Here

      log.error("Error while executing " + cmdline + "!", e);
      Throwable th = processThrowable(e);
      if (th instanceof RuntimeException) {
        throw  (RuntimeException) th;
      } else {
        throw new ShellException(th);
      }
    } /*finally {
      TxSupport.clearUTForThread();
    }   */
  }
 
View Full Code Here

      log.error("Error while executing " + cmdline + "!", e);
      Throwable th = processThrowable(e);
      if (th instanceof RuntimeException) {
        throw  (RuntimeException) th;
      } else {
        throw new ShellException(th);
      }
    }/* finally {
      TxSupport.clearUTForThread();
    }*/
  }
 
View Full Code Here

TOP

Related Classes of org.jboss.fresh.shell.ShellException

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.