Zum Hauptinhalt springen

UniquenessViolationErrorResponse

Namespace: Meshmakers.Octo.Communication.Contracts.DataTransferObjects

Returned when the creation or update of a resource would have lead to a unique constraint on a field to be violated.

public class UniquenessViolationErrorResponse : ErrorResponse

Inheritance Object → ErrorResponse → UniquenessViolationErrorResponse

Properties​

ViolatedUniqueFields​

List of fields whose unique constraint would be violated by the operation.

public List<string> ViolatedUniqueFields { get; set; }

Property Value​

List<String>

ErrorMessage​

Error message that informs about the error.

public string ErrorMessage { get; set; }

Property Value​

String

Constructors​

UniquenessViolationErrorResponse()​

public UniquenessViolationErrorResponse()