Package org.km3net.clb.remote.msg
Class ResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.km3net.clb.remote.msg.CommandException
-
- org.km3net.clb.remote.msg.ResponseException
-
- All Implemented Interfaces:
java.io.Serializable
public class ResponseException extends CommandException
Thrown when a command yields an error. Unlike MessageException this is always caused by an error or problem on the remote-side.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResponseException(ClbError err)
ResponseException(ClbError err, java.lang.String message)
ResponseException(ClbError err, java.lang.String message, MessageContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
MessageContext
getContext()
ClbError
getError()
-
-
-
Constructor Detail
-
ResponseException
public ResponseException(ClbError err)
-
ResponseException
public ResponseException(ClbError err, java.lang.String message)
-
ResponseException
public ResponseException(ClbError err, java.lang.String message, MessageContext ctx)
-
-
Method Detail
-
getCode
public int getCode()
-
getError
public ClbError getError()
-
getContext
public MessageContext getContext()
- Returns:
- the context
-
-