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
errorCarrotErrorresponseobjectstatusCodeint
Properties
DeliveryStatus
public DeliveryStatus DeliveryStatus { get; }
Property Value
Response
public CarrotResponse Response { get; }