Package org.crsh.shell

Examples of org.crsh.shell.ErrorKind


      Utils.close(invocationContext);
    }
  }

  private ShellResponse.Error build(Throwable throwable) {
    ErrorKind errorType;
    if (throwable instanceof CommandException) {
      CommandException ce = (CommandException)throwable;
      errorType = ce.getErrorKind();
      Throwable cause = throwable.getCause();
      if (cause != null) {
View Full Code Here


    private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
      if (ois.readBoolean()) {
        response = (ShellResponse)ois.readObject();
      } else {
        ErrorKind type = (ErrorKind)ois.readObject();
        String message = (String)ois.readObject();
        String errorMessage = (String)ois.readObject();
        StackTraceElement[] errorTrace = (StackTraceElement[])ois.readObject();
        Exception ex = new Exception(errorMessage);
        ex.setStackTrace(errorTrace);
View Full Code Here

TOP

Related Classes of org.crsh.shell.ErrorKind

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.