Constructor MailAccessTokenUnavailableException
- Namespace
- MailFathom.Infrastructure.Mail.OAuth
- Assembly
- MailFathom.Infrastructure.dll
MailAccessTokenUnavailableException(string, string)
Initializes a failure the authorization server stated in its response.
public MailAccessTokenUnavailableException(string accountId, string authorizationServerErrorCode)
Parameters
accountIdstringThe local account identifier.
authorizationServerErrorCodestringThe authorization server's RFC 6749 error code.
Exceptions
- ArgumentNullException
Thrown when an argument is null.
MailAccessTokenUnavailableException(string, Exception)
Initializes a failure that happened before any response could state one.
public MailAccessTokenUnavailableException(string accountId, Exception innerException)
Parameters
accountIdstringThe local account identifier.
innerExceptionExceptionThe transport or parsing failure underneath.
Remarks
The two constructors are the two outcomes: a refusal the server decided, and a request that never reached one. Retry classification reads exactly that distinction.
Exceptions
- ArgumentNullException
Thrown when an argument is null.