type ApiException (v202505)

  • ApiException is an exception class used to hold a list of service errors.

  • It inherits from ApplicationException and includes a list of various specific error types.

  • The ApiException includes a field errors which is a list of ApiError objects or more specific error types.

  • The inherited ApplicationException includes a message field containing an error message.

Exception class for holding a list of service errors.


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

Field

ApplicationException (inherited)

message

xsd:string

Error message.

ApiException

errors

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

List of errors.