Table of Contents

Class ErrorResponse

Namespace
SEBT.Portal.Api.Models
Assembly
SEBT.Portal.Api.dll

Standard error response model for API error responses.

public record ErrorResponse
Inheritance
object
ErrorResponse

Constructors

ErrorResponse(string, IReadOnlyCollection<ValidationError>?)

Standard error response model for API error responses.

public ErrorResponse(string Error, IReadOnlyCollection<ValidationError>? Errors = null)

Parameters

Error string

The error message.

Errors IReadOnlyCollection<ValidationError>

Optional collection of validation errors, if applicable.

Properties

Error

The error message.

public string Error { get; init; }

Property Value

string

Errors

Optional collection of validation errors, if applicable.

public IReadOnlyCollection<ValidationError>? Errors { get; init; }

Property Value

IReadOnlyCollection<ValidationError>