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
System.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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.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, Nullable<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
System.Nullable<System.Net.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
System.Nullable<System.Net.HttpStatusCode>

Implements

System.Runtime.Serialization.ISerializable
Back to top