type StringLengthError (v202411)Stay organized with collectionsSave and categorize content based on your preferences.
AI-generated Key Takeaways
The StringLengthError is part of the ApiError inheritance chain and is used to indicate errors where a string value does not meet specified length requirements.
It includes fields for the field path of the error, a parsed version of the field path, the data that triggered the error, and a simple error string.
The StringLengthError also has a specific reason field which can be TOO_LONG, TOO_SHORT, or UNKNOWN.
A parsed copy of the field path. For example, the field path "operations[1].operand"
corresponds to this list: {FieldPathElement(field = "operations", index = 1),
FieldPathElement(field = "operand", index = null)}.
trigger
xsd:string
The data that caused the error.
errorString
xsd:string
A simple string representation of the error and reason.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[],["The content details various services and associated errors within an ad management API, version v202411. It lists services like AdRuleService, AdjustmentService, and CmsMetadataService, among many others. It further specifies the `StringLengthError`, which is part of the inheritance chain originating from `ApiError`, and is triggered by strings that fail to meet length constraints. This error has attributes: `fieldPath`, `fieldPathElements`, `trigger`, and `errorString` as well as `reason` that can be one of `TOO_LONG`, `TOO_SHORT`, or `UNKNOWN`.\n"]]