Table of Contents

IsServerErrorStatusCode Method

Definition

IsServerErrorStatusCode(IDecorator<int>)

Determines whether the enclosed int of the decorator is within the server error related range.

public static bool IsServerErrorStatusCode(this IDecorator<int> decorator)

Parameters

decorator IDecorator<int>

The IDecorator<T> to extend.

Returns

bool

true if the enclosed int of the decorator was in the Server Error range (500-599); otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null.