Table of Contents

Class ErrorResult

Namespace
CarrotMQ.Core.Handlers.HandlerResults
Assembly
CarrotMQ.Core.dll

Represents that an error occured during a request that expects a response. The message will not be retried and the response contains information about the error (e.g. the message represented an invalid command)

public class ErrorResult : IHandlerResult
Inheritance
ErrorResult
Implements
Inherited Members
Extension Methods

Constructors

ErrorResult(CarrotError?, object?, int)

Represents that an error occured during a request that expects a response. The message will not be retried and the response contains information about the error (e.g. the message represented an invalid command)

public ErrorResult(CarrotError? error, object? response, int statusCode = 500)

Parameters

error CarrotError
response object
statusCode int

Properties

DeliveryStatus

public DeliveryStatus DeliveryStatus { get; }

Property Value

DeliveryStatus

Response

public CarrotResponse Response { get; }

Property Value

CarrotResponse