org.crsh.shell
Class ShellResponse.Error

java.lang.Object
  extended by org.crsh.shell.ShellResponse
      extended by org.crsh.shell.ShellResponse.Error
All Implemented Interfaces:
Serializable
Enclosing class:
ShellResponse

public static class ShellResponse.Error
extends ShellResponse

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.crsh.shell.ShellResponse
ShellResponse.Cancelled, ShellResponse.Close, ShellResponse.Error, ShellResponse.NoCommand, ShellResponse.Ok, ShellResponse.UnknownCommand
 
Field Summary
private  ErrorKind kind
          .
private  String msg
          .
private  Throwable throwable
          The throwable.
 
Constructor Summary
private ShellResponse.Error(ErrorKind kind, String msg)
           
private ShellResponse.Error(ErrorKind kind, String msg, Throwable throwable)
           
 
Method Summary
 ErrorKind getKind()
           
 String getMessage()
           
 Throwable getThrowable()
           
 String toString()
           
 
Methods inherited from class org.crsh.shell.ShellResponse
cancelled, close, error, error, evalError, evalError, internalError, internalError, noCommand, ok, ok, unknownCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kind

private final ErrorKind kind
.


throwable

private final Throwable throwable
The throwable.


msg

private final String msg
.

Constructor Detail

ShellResponse.Error

private ShellResponse.Error(ErrorKind kind,
                            String msg)

ShellResponse.Error

private ShellResponse.Error(ErrorKind kind,
                            String msg,
                            Throwable throwable)
Method Detail

getKind

public ErrorKind getKind()

getThrowable

public Throwable getThrowable()

getMessage

public String getMessage()
Specified by:
getMessage in class ShellResponse

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 eXo Platform SAS. All Rights Reserved.