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
System.Exception
TokenResponseException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.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

System.Runtime.Serialization.ISerializable
In This Article
Back to top Generated by DocFX