Class TokenResponseException
Token response exception which is thrown in case of receiving a token error when an authorization code or an access token is expected.
Implements
Inherited Members
Namespace: Google.Apis.Auth.OAuth2.Responses
Assembly: Google.Apis.Auth.dll
Syntax
public class TokenResponseException : Exception, ISerializable
Constructors
TokenResponseException(TokenErrorResponse)
Constructs a new token response exception from the given error.
Declaration
public TokenResponseException(TokenErrorResponse error)
Parameters
Type | Name | Description |
---|---|---|
TokenErrorResponse | error |
TokenResponseException(TokenErrorResponse, HttpStatusCode?)
Constructs a new token response exception from the given error nad optional HTTP status code.
Declaration
public TokenResponseException(TokenErrorResponse error, HttpStatusCode? statusCode)
Parameters
Type | Name | Description |
---|---|---|
TokenErrorResponse | error | |
HttpStatusCode? | statusCode |
Properties
Error
The error information.
Declaration
public TokenErrorResponse Error { get; }
Property Value
Type | Description |
---|---|
TokenErrorResponse |
StatusCode
HTTP status code of error, or null if unknown.
Declaration
public HttpStatusCode? StatusCode { get; }
Property Value
Type | Description |
---|---|
HttpStatusCode? |