public class MessageErrorEvent extends Message
Message.MessageType
Constructor and Description |
---|
MessageErrorEvent(int id,
String error)
Creates a new message based on the given parameters.
|
MessageErrorEvent(javax.json.JsonObject obj)
Creates a new message based on the JSON representation.
|
Modifier and Type | Method and Description |
---|---|
String |
getError()
The error message.
|
void |
toJson(Writer writer)
Serializes this message as JSON onto the given writer.
|
getId, getMessage, readValueFromJson, writeValueToJson
public MessageErrorEvent(javax.json.JsonObject obj) throws MessageDecodeException
obj
- JSON objectMessageDecodeException
- if json format is incorrectpublic MessageErrorEvent(int id, String error)
id
- the channel iderror
- the error messagepublic String getError()
Copyright © 2015. All rights reserved.