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  String msg
          .
private  Throwable throwable
          The throwable.
private  ErrorType type
          .
 
Constructor Summary
private ShellResponse.Error(ErrorType type, String msg)
           
private ShellResponse.Error(ErrorType type, String msg, Throwable throwable)
           
 
Method Summary
 String getMessage()
           
 Throwable getThrowable()
           
 ErrorType getType()
           
 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

type

private final ErrorType type
.


throwable

private final Throwable throwable
The throwable.


msg

private final String msg
.

Constructor Detail

ShellResponse.Error

private ShellResponse.Error(ErrorType type,
                            String msg)

ShellResponse.Error

private ShellResponse.Error(ErrorType type,
                            String msg,
                            Throwable throwable)
Method Detail

getType

public ErrorType getType()

getThrowable

public Throwable getThrowable()

getMessage

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 eXo Platform SAS. All Rights Reserved.