Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.Common.Lib.AdsOAuthException Class Reference

Exception thrown when OAuth authentication with Ads server fails. More...

Inheritance diagram for Google.Api.Ads.Common.Lib.AdsOAuthException:
Google.Api.Ads.Common.Lib.AdsException

Public Member Functions

 AdsOAuthException ()
 Public constructor. More...
 
 AdsOAuthException (string message)
 Public constructor. More...
 
 AdsOAuthException (string message, Exception innerException)
 Public constructor. More...
 
 AdsOAuthException (string message, Exception innerException, TokenErrorResponse error, HttpStatusCode?statusCode)
 Public constructor. More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 This method is called by serialization frameworks while serializing an exception object. More...
 

Protected Member Functions

 AdsOAuthException (SerializationInfo info, StreamingContext context)
 Protected constructor. Used by serialization frameworks while deserializing an exception object. More...
 
- Protected Member Functions inherited from Google.Api.Ads.Common.Lib.AdsException
 AdsException ()
 Protected constructor. More...
 
 AdsException (string message)
 Protected constructor. More...
 
 AdsException (string message, Exception innerException)
 Protected constructor. More...
 
 AdsException (SerializationInfo info, StreamingContext context)
 Protected constructor, used by serialization frameworks while deserializing an exception object. More...
 
GetValue< T > (SerializationInfo info, string fieldName)
 Gets a specified field from serialization stream. More...
 

Properties

TokenErrorResponse Error [get, set]
 Gets the error information, if available. More...
 
HttpStatusCode StatusCode [get, set]
 Gets the HTTP status code of error, or null if unknown. More...
 

Detailed Description

Exception thrown when OAuth authentication with Ads server fails.

Constructor & Destructor Documentation

Google.Api.Ads.Common.Lib.AdsOAuthException.AdsOAuthException ( )
inline

Public constructor.

Google.Api.Ads.Common.Lib.AdsOAuthException.AdsOAuthException ( string  message)
inline

Public constructor.

Parameters
messageError message for this API exception.
Google.Api.Ads.Common.Lib.AdsOAuthException.AdsOAuthException ( string  message,
Exception  innerException 
)
inline

Public constructor.

Parameters
messageError message for this API exception.
innerExceptionInner exception, if any.
Google.Api.Ads.Common.Lib.AdsOAuthException.AdsOAuthException ( string  message,
Exception  innerException,
TokenErrorResponse  error,
HttpStatusCode?  statusCode 
)
inline

Public constructor.

Parameters
messageError message for this API exception.
innerExceptionInner exception, if any.
errorThe error details from server.
statusCodeHTTP status code, if available.
Google.Api.Ads.Common.Lib.AdsOAuthException.AdsOAuthException ( SerializationInfo  info,
StreamingContext  context 
)
inlineprotected

Protected constructor. Used by serialization frameworks while deserializing an exception object.

Parameters
infoInfo about the serialization context.
contextA streaming context that represents the serialization stream.

References Google.Api.Ads.Common.Util.SerializationUtilities.DeserializeFromXmlText().

Member Function Documentation

override void Google.Api.Ads.Common.Lib.AdsOAuthException.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)
inline

This method is called by serialization frameworks while serializing an exception object.

Parameters
infoInfo about the serialization context.
contextA streaming context that represents the serialization stream.

Property Documentation

TokenErrorResponse Google.Api.Ads.Common.Lib.AdsOAuthException.Error
getset

Gets the error information, if available.

HttpStatusCode Google.Api.Ads.Common.Lib.AdsOAuthException.StatusCode
getset

Gets the HTTP status code of error, or null if unknown.


The documentation for this class was generated from the following file: