Show / Hide Table of Contents

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.

Inheritance
object
Exception
TokenResponseException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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?

Implements

ISerializable
In this article
Back to top Generated by DocFX