Logo Navs

MatchError Type

A structured match failure. Only the fields that apply to MatchError.Kind carry a value.

Constructors

Constructor Description

MatchError(kind)

Full Usage: MatchError(kind)

Parameters:

Instance members

Instance member Description

this.Expected

Full Usage: this.Expected

Returns: Nullable<ParameterType>

The declared parameter type, for the unparsable cases.

Returns: Nullable<ParameterType>

this.Kind

Full Usage: this.Kind

Returns: MatchErrorKind
Returns: MatchErrorKind

this.Message

Full Usage: this.Message

Returns: string
Returns: string

this.Missing

Full Usage: this.Missing

Returns: IReadOnlyList<string>

The missing query parameter names.

Returns: IReadOnlyList<string>

this.Name

Full Usage: this.Name

Returns: string

The parameter name, for the unparsable cases.

Returns: string

this.TemplateSegment

Full Usage: this.TemplateSegment

Returns: string

The literal template segment, for MatchErrorKind.SegmentMismatch.

Returns: string

this.Unparsable

Full Usage: this.Unparsable

Returns: IReadOnlyList<UnparsableItem>

The offending values, for MatchErrorKind.QueryParametersUnparsable.

Returns: IReadOnlyList<UnparsableItem>

this.UrlSegment

Full Usage: this.UrlSegment

Returns: string

The URL segment, for MatchErrorKind.SegmentMismatch.

Returns: string

this.Value

Full Usage: this.Value

Returns: string

The offending value, for the single-value unparsable cases.

Returns: string

Type something to start searching.