Class RestFailureData
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
MethodstringRouteTemplatestringRequestUristringDurationTimeSpanExceptionTypestringThe 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
WireMockUnmatchedRequestinstead of inventing a type.MessagestringIsCanceledbool
Properties
Duration
public TimeSpan Duration { get; init; }
Property Value
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
IsCanceled
public bool IsCanceled { get; init; }
Property Value
Message
public string Message { get; init; }
Property Value
Method
public string Method { get; init; }
Property Value
RequestUri
public string? RequestUri { get; init; }
Property Value
RouteTemplate
public string RouteTemplate { get; init; }