Language

ErrorBehavior Enum

Definition

ResultErrorOptions controls the behavior of an operation when an unexpected response status code is received.

This enumeration supports a bitwise combination of its member values.

public enum class ErrorBehavior
[System.Flags]
public enum ErrorBehavior
[<System.Flags>]
type ErrorBehavior = 
Public Enum ErrorBehavior
Inheritance
ErrorBehavior
Attributes

Fields

Name Value Description
Default 0

Indicates that an operation should throw an exception when the response indicates a failure.

NoThrow 1

Indicates that an operation should not throw an exception when the response indicates a failure. Callers should check the Response.IsError property instead of catching exceptions.

Applies to