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

Custom exception class for wrapping AdWords API SOAP exceptions. More...

Inheritance diagram for Google.Api.Ads.AdWords.Lib.AdWordsApiException:
Google.Api.Ads.AdWords.Lib.AdWordsException Google.Api.Ads.Common.Lib.AdsException

Public Member Functions

 AdWordsApiException ()
 Public constructor. More...
 
 AdWordsApiException (object apiException)
 Public constructor. More...
 
 AdWordsApiException (object apiException, string message)
 Public constructor. More...
 
 AdWordsApiException (object apiException, string message, Exception innerException)
 Public constructor. More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 This method is called by serialization frameworks while serializing an exception object. More...
 
- Public Member Functions inherited from Google.Api.Ads.AdWords.Lib.AdWordsException
 AdWordsException ()
 Public constructor. More...
 
 AdWordsException (string message)
 Public constructor. More...
 
 AdWordsException (string message, Exception innerException)
 Public constructor. More...
 

Protected Member Functions

 AdWordsApiException (SerializationInfo info, StreamingContext context)
 Protected constructor. Used by serialization frameworks while deserializing an exception object. More...
 
- Protected Member Functions inherited from Google.Api.Ads.AdWords.Lib.AdWordsException
 AdWordsException (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

object ApiException [get]
 Gets the ApiException object. More...
 
override string Message [get]
 Gets a message that describes the current exception. More...
 

Detailed Description

Custom exception class for wrapping AdWords API SOAP exceptions.

Constructor & Destructor Documentation

Google.Api.Ads.AdWords.Lib.AdWordsApiException.AdWordsApiException ( )
inline

Public constructor.

Google.Api.Ads.AdWords.Lib.AdWordsApiException.AdWordsApiException ( object  apiException)
inline

Public constructor.

Parameters
apiExceptionThe underlying ApiException from the server.
Google.Api.Ads.AdWords.Lib.AdWordsApiException.AdWordsApiException ( object  apiException,
string  message 
)
inline

Public constructor.

Parameters
apiExceptionThe underlying ApiException from the server.
messageError message for this API exception.
Google.Api.Ads.AdWords.Lib.AdWordsApiException.AdWordsApiException ( object  apiException,
string  message,
Exception  innerException 
)
inline

Public constructor.

Parameters
apiExceptionThe underlying ApiException from the server.
messageError message for this API exception.
innerExceptionInner exception, if any.
Google.Api.Ads.AdWords.Lib.AdWordsApiException.AdWordsApiException ( 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.

Member Function Documentation

override void Google.Api.Ads.AdWords.Lib.AdWordsApiException.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

object Google.Api.Ads.AdWords.Lib.AdWordsApiException.ApiException
get

Gets the ApiException object.

Referenced by Google.Api.Ads.AdWords.Examples.CSharp.v201809.ValidateTextAd.Run().

override string Google.Api.Ads.AdWords.Lib.AdWordsApiException.Message
get

Gets a message that describes the current exception.


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