Table of Contents

Class IssueServiceException

Namespace
Quilt4Net.Toolkit.Features.Issue
Assembly
Quilt4Net.Toolkit.dll

Thrown when the Quilt4Net server rejects an issue-tracker call.

public class IssueServiceException : Exception, ISerializable
Inheritance
IssueServiceException
Implements
Inherited Members
Extension Methods

Remarks

The issue client deliberately throws rather than degrading to a default. A tracker read that swallowed a failure and returned an empty set would look exactly like a team with no issues, which is the one answer a caller must not be given wrongly.

Constructors

IssueServiceException(string, int, TimeSpan?)

Creates the exception.

public IssueServiceException(string message, int statusCode, TimeSpan? retryAfter = null)

Parameters

message string

What the server said.

statusCode int

The HTTP status code returned.

retryAfter TimeSpan?

How long the server asked the caller to wait, when it said so.

Properties

RetryAfter

How long to wait before trying again, taken from the server's Retry-After on a 429. null when the server gave no advice, in which case the caller's own back-off applies — never an immediate retry.

public TimeSpan? RetryAfter { get; }

Property Value

TimeSpan?

StatusCode

The HTTP status code the server returned.

public int StatusCode { get; }

Property Value

int