Class SortDirectionIsNotRecognized

Namespace
Cratis.Arc.Queries
Assembly
Cratis.Arc.Core.dll

The exception that is thrown when a query request carries a sort direction that is not one of the recognized spellings.

public class SortDirectionIsNotRecognized : Exception, ISerializable, IValidationFailure
Inheritance
SortDirectionIsNotRecognized
Implements
Inherited Members
Extension Methods

Remarks

It implements IValidationFailure so the request is rejected as a client error (HTTP 400) carrying MalformedRequest, rather than being answered with results in an order the caller did not ask for.

Constructors

SortDirectionIsNotRecognized(string, string)

The exception that is thrown when a query request carries a sort direction that is not one of the recognized spellings.

public SortDirectionIsNotRecognized(string value, string member)

Parameters

value string

The unrecognized sort direction.

member string

The name of the request member the direction was read from.

Remarks

It implements IValidationFailure so the request is rejected as a client error (HTTP 400) carrying MalformedRequest, rather than being answered with results in an order the caller did not ask for.

Properties

Member

Gets the name of the request member the direction was read from.

public string Member { get; }

Property Value

string

ValidationResult

Gets the ValidationResult describing why the command is invalid.

public ValidationResult ValidationResult { get; }

Property Value

ValidationResult

Value

Gets the unrecognized sort direction.

public string Value { get; }

Property Value

string