Class ErrorResponseMessage
- java.lang.Object
-
- co.paralleluniverse.actors.behaviors.ActorMessage
-
- co.paralleluniverse.actors.behaviors.ResponseMessage
-
- co.paralleluniverse.actors.behaviors.ErrorResponseMessage
-
- All Implemented Interfaces:
ErrorMessage
,IdMessage
,java.io.Serializable
public class ErrorResponseMessage extends ResponseMessage implements ErrorMessage
A simple subclass ofResponseMessage
that represents an error in processing the request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorResponseMessage(java.lang.Object id, java.lang.Throwable error)
Constructs aErrorResponseMessage
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
contentString()
java.lang.Throwable
getError()
The error that occurred while processing the request.-
Methods inherited from class co.paralleluniverse.actors.behaviors.ResponseMessage
getId
-
Methods inherited from class co.paralleluniverse.actors.behaviors.ActorMessage
toString
-
-
-
-
Constructor Detail
-
ErrorResponseMessage
@ConstructorParameters({"id","error"}) public ErrorResponseMessage(java.lang.Object id, java.lang.Throwable error)
Constructs aErrorResponseMessage
.- Parameters:
id
- theid
of theRequestMessage
this is a response to.error
- the error that occurred while processing the request.
-
-
Method Detail
-
getError
public java.lang.Throwable getError()
The error that occurred while processing the request.- Specified by:
getError
in interfaceErrorMessage
-
contentString
protected java.lang.String contentString()
- Overrides:
contentString
in classResponseMessage
-
-