GoogleApiAdsCommon
[ class tree: GoogleApiAdsCommon ] [ index: GoogleApiAdsCommon ] [ all elements ]

Class: ErrorUtils

Source Location: /Common/Util/ErrorUtils.php

Class Overview


A collection of utility methods for working with errors.


Methods



Class Details

[line 33]
A collection of utility methods for working with errors.



[ Top ]


Class Methods


static method GetApiErrors [line 49]

static array GetApiErrors( $fault)

Gets the ApiErrors in the SOAP fault, if any.



Tags:

return:  the ApiErrors in the SOAP fault, or an empty array if there were none
access:  public


Parameters:

SoapFault   $fault   the SOAP fault to extract errors from

[ Top ]

static method GetSourceOperationIndex [line 76]

static int GetSourceOperationIndex( mixed $error)

Gets the index of the operation that was the source of an error.



Tags:

return:  the index of the operation that caused the error, or NULL if no operation was referenced by the error
access:  public


Parameters:

mixed   $error   the error returned in the response

[ Top ]


Documentation generated by phpDocumentor 1.4.3