Class RestFailureData

Namespace
ProtoTest.Rest
Assembly
ProtoTest.Rest.dll

Data payload sent when an HTTP request fails.

public sealed record RestFailureData : IEquatable<RestFailureData>
Inheritance
RestFailureData
Implements
Inherited Members
Extension Methods

Constructors

RestFailureData(string, string, string?, TimeSpan, string, string, bool)

Data payload sent when an HTTP request fails.

public RestFailureData(string Method, string RouteTemplate, string? RequestUri, TimeSpan Duration, string ExceptionType, string Message, bool IsCanceled)

Parameters

Method string
RouteTemplate string
RequestUri string
Duration TimeSpan
ExceptionType string

The exception that produced the failure, or a producer-defined marker when the failure is synthetic: WireMock.Net records an unmatched request without an exception, so the fake reports WireMockUnmatchedRequest instead of inventing a type.

Message string
IsCanceled bool

Properties

Duration

public TimeSpan Duration { get; init; }

Property Value

TimeSpan

ExceptionType

The exception that produced the failure, or a producer-defined marker when the failure is synthetic: WireMock.Net records an unmatched request without an exception, so the fake reports WireMockUnmatchedRequest instead of inventing a type.

public string ExceptionType { get; init; }

Property Value

string

IsCanceled

public bool IsCanceled { get; init; }

Property Value

bool

Message

public string Message { get; init; }

Property Value

string

Method

public string Method { get; init; }

Property Value

string

RequestUri

public string? RequestUri { get; init; }

Property Value

string

RouteTemplate

public string RouteTemplate { get; init; }

Property Value

string