Table of Contents

Class CarrotError

Namespace
CarrotMQ.Core
Assembly
CarrotMQ.Core.dll

Represents an error in the CarrotMQ messaging system.

public sealed class CarrotError
Inheritance
CarrotError
Inherited Members

Constructors

CarrotError()

Initializes a new instance of the CarrotError class.

public CarrotError()

CarrotError(string, IDictionary<string, string[]>?)

Initializes a new instance of the CarrotError class with the specified message and optional field-specific errors.

public CarrotError(string message, IDictionary<string, string[]>? errors = null)

Parameters

message string

The error message.

errors IDictionary<string, string[]>

Field-specific error messages where the key is the request field path and the value is an array of errors for the given field.

Properties

Errors

Field specific error messages

  • Key = Request field path
  • Value = array of errors for the given field
public IDictionary<string, string[]> Errors { get; set; }

Property Value

IDictionary<string, string[]>

Message

Error message

public string Message { get; set; }

Property Value

string