Constructor MailboxAuthorizationFailedException
- Namespace
- MailFathom.Common.MailboxOAuth
- Assembly
- MailFathom.Common.dll
MailboxAuthorizationFailedException(string)
Initializes a new authorization failure.
public MailboxAuthorizationFailedException(string authorizationServerErrorCode)
Parameters
authorizationServerErrorCodestringThe error code the authorization server returned, or one of the two MailFathom names.
Exceptions
- ArgumentNullException
Thrown when
authorizationServerErrorCodeis null.
MailboxAuthorizationFailedException(string, Exception)
Initializes a new authorization failure over the transport failure that produced it.
public MailboxAuthorizationFailedException(string authorizationServerErrorCode, Exception innerException)
Parameters
authorizationServerErrorCodestringThe error code the authorization server returned, or one of the two MailFathom names.
innerExceptionExceptionThe failure this one translates, which records which answer the code stands for.
Remarks
The code is a vocabulary an operator reads, so several distinct answers share one — a body that is not JSON, a
character set this platform does not carry, and a payload the contract refuses all report
non_json_response_http_…. Carrying the original failure is what lets a diagnostic say which of them
happened without the message ever quoting a body from a machine this process does not own.
Exceptions
- ArgumentNullException
Thrown when
authorizationServerErrorCodeis null.