Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Authentication.dll Namespace: Microsoft.OData.Mcp.Authentication.Outbound Inheritance: System.Exception

Syntax

Summary

The single exception type outbound discovery throws when a well-known request fails in a way that AUTH-14 does not treat as a non-fatal fallback: a timeout, a transport failure, or a repeated server error after the one retry discovery allows.

Remarks

Per specs/v3/AUTHENTICATION.md AUTH-14, well-known 401/403/404 and a failed parse are not fatal and never throw this type; only a timeout or a repeated 5xx after retrying once does. Every discovery failure in this package throws this exception, so a caller can catch one type regardless of which well-known request failed.

Examples

Constructors

.ctor

Initializes a new instance of the OutboundDiscoveryException class with a message.

Syntax

Parameters

.ctor

Initializes a new instance of the OutboundDiscoveryException class with a message and the exception that caused this failure.

Syntax

Parameters

.ctor

Initializes a new instance of the OutboundDiscoveryException class for a well-known request that failed with an HTTP status code.

Syntax

Parameters

Exceptions

Properties

StatusCode

Gets the HTTP status code the failing request returned, or null when the failure was a transport exception with no response.

Syntax

Property Value

Type: System.Nullable<int>

Url

Gets the well-known URL the failing request was sent to, or null when this instance was constructed with only a message.

Syntax

Property Value

Type: System.Uri?