Class ErrorMessage
- Namespace
- NLightning.Bolts.BOLT1.Messages
- Assembly
- NLightning.Bolts.dll
Represents an error message.
public sealed class ErrorMessage : BaseMessage, IMessage
- Inheritance
-
ErrorMessage
- Implements
- Inherited Members
Remarks
An error message is used to communicate an error to the other party. The message type is 17.
Constructors
ErrorMessage(ErrorPayload)
Represents an error message.
public ErrorMessage(ErrorPayload payload)
Parameters
payload
ErrorPayloadThe error payload.
Remarks
An error message is used to communicate an error to the other party. The message type is 17.
Properties
Payload
The payload of the message.
public ErrorPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize an ErrorMessage from a stream.
public static Task<ErrorMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<ErrorMessage>
The deserialized ErrorMessage.
Exceptions
- MessageSerializationException
Error deserializing ErrorMessage