type ApiException (v202411)

  • The ApiException class is designed to hold a list of service errors encountered during API operations.

  • It inherits from the ApplicationException class and provides details about the error through its errors and message fields.

  • Errors can include issues with authentication, data types, permissions, or exceeding service limits, among other potential issues.

  • The errors field lists the specific error types (such as ApiError, AuthenticationError, CustomFieldError) that occurred during the operation.

Exception class for holding a list of service errors.


Namespace
https://www.google.com/apis/ads/publisher/v202411

Field

ApplicationException (inherited)

message

xsd:string

Error message.

ApiException

errors

  1. ApiError[]
    1. ApiVersionError
    2. AuthenticationError
    3. CollectionSizeError
    4. CommonError
    5. CustomFieldError
    6. EntityLimitReachedError
    7. FeatureError
    8. InternalApiError
    9. NotNullError
    10. NullError
    11. ParseError
    12. PermissionError
    13. PublisherQueryLanguageConte...
    14. PublisherQueryLanguageSynta...
    15. QuotaError
    16. RequiredCollectionError
    17. RequiredError
    18. ServerError
    19. StatementError
    20. StringFormatError
    21. StringLengthError
    22. TypeError
    23. UniqueError

List of errors.