Skip to main content

OperationFailedErrorDto

Namespace: Meshmakers.Octo.Communication.Contracts.DataTransferObjects.ApiErrors

Represents an internal server error data transfer object

public class OperationFailedErrorDto : ApiErrorDto

Inheritance ObjectApiErrorDtoOperationFailedErrorDto

Properties

StatusCode

The Http status code

public int StatusCode { get; }

Property Value

Int32

StatusDescription

String representation of the status code

public string StatusDescription { get; }

Property Value

String

Message

A message that explains what actually happened

public string Message { get; }

Property Value

String

Details

A message that explains what actually happened

public IEnumerable<FailedDetailsDto> Details { get; }

Property Value

IEnumerable<FailedDetailsDto>

Constructors

OperationFailedErrorDto()

Constructor

public OperationFailedErrorDto()

OperationFailedErrorDto(String)

Constructor

public OperationFailedErrorDto(string message)

Parameters

message String
A message that describes the error

OperationFailedErrorDto(String, IEnumerable<FailedDetailsDto>)

Constructor

public OperationFailedErrorDto(string message, IEnumerable<FailedDetailsDto> failedDetails)

Parameters

message String
A message that describes the error

failedDetails IEnumerable<FailedDetailsDto>
A list of that describes the error