Class ErrorPayload
- Namespace
- NLightning.Domain.Protocol.Payloads
- Assembly
- NLightning.Domain.dll
Represents an error payload.
public class ErrorPayload : IMessagePayload
- Inheritance
-
ErrorPayload
- Implements
- Inherited Members
Remarks
An error payload is used to communicate an error to the other party.
Constructors
ErrorPayload(ChannelId, byte[])
public ErrorPayload(ChannelId channelId, byte[] data)
Parameters
ErrorPayload(ChannelId, string)
public ErrorPayload(ChannelId channelId, string message)
Parameters
ErrorPayload(byte[])
public ErrorPayload(byte[] data)
Parameters
data
byte[]
ErrorPayload(string)
public ErrorPayload(string message)
Parameters
message
string
Properties
ChannelId
The channel id.
public ChannelId ChannelId { get; }
Property Value
Remarks
The channel id is used to identify the channel the error is related to.
Data
The error data.
public byte[]? Data { get; }
Property Value
- byte[]
Remarks
The error data is used to communicate the error.