RequestFailedDetailsParser.TryParse Method

Definition

Parses the error details from the provided Response.

public abstract bool TryParse (Azure.Response response, out Azure.ResponseError? error, out System.Collections.Generic.IDictionary<string,string>? data);
abstract member TryParse : Azure.Response * ResponseError * IDictionary -> bool
Public MustOverride Function TryParse (response As Response, ByRef error As ResponseError, ByRef data As IDictionary(Of String, String)) As Boolean

Parameters

response
Response

The Response to parse. The ContentStream will already be buffered.

error
ResponseError

The ResponseError describing the parsed error details.

data
IDictionary<String,String>

Data to be applied to the Data property.

Returns

true if successful, otherwise false.

Remarks

In various scenarios, parsers may be called for successful responses. Implementations should not populate error or data with sensitive information, as these values may be logged as part of the exception.

Applies to