Class IssueServiceException
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
messagestringWhat the server said.
statusCodeintThe HTTP status code returned.
retryAfterTimeSpan?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
StatusCode
The HTTP status code the server returned.
public int StatusCode { get; }