Table of Contents

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

channelId ChannelId
data byte[]

ErrorPayload(ChannelId, string)

public ErrorPayload(ChannelId channelId, string message)

Parameters

channelId ChannelId
message string

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

ChannelId

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.

See Also