Table of Contents

Class OpenServiceBrokerErrorHandler

Namespace
OpenServiceBroker
Assembly
OpenServiceBroker.Client.dll

Handles Open Service Broker error responses.

public class OpenServiceBrokerErrorHandler : IErrorHandler
Inheritance
OpenServiceBrokerErrorHandler
Implements
Inherited Members
Extension Methods

Methods

HandleAsync(HttpResponseMessage)

Throws appropriate Exceptions based on HTTP status codes and response bodies.

public Task HandleAsync(HttpResponseMessage response)

Parameters

response HttpResponseMessage

Returns

Task

Exceptions

InvalidDataException

BadRequest

AuthenticationException

Unauthorized

UnauthorizedAccessException

Forbidden

KeyNotFoundException

NotFound or Gone

InvalidOperationException

Conflict, PreconditionFailed or RequestedRangeNotSatisfiable

HttpRequestException

Other non-success status code.