Class VastBeaconErrorCodeKt
-
- All Implemented Interfaces:
public final class VastBeaconErrorCodeKt
-
-
Method Summary
Modifier and Type Method Description final static ShortmapVastParseErrorToVastError(Short $self)Maps VAST parsing error codes to standardized VAST beacon error codes. -
-
Method Detail
-
mapVastParseErrorToVastError
final static Short mapVastParseErrorToVastError(Short $self)
Maps VAST parsing error codes to standardized VAST beacon error codes.
This extension function converts internal parsing error codes (from VastParseErrorCode) to standardized VAST beacon error codes that conform to the VAST specification. The mapping ensures that detailed internal error conditions are properly categorized into the appropriate VAST error categories for external reporting.
The function groups related parsing errors into their corresponding beacon error categories, providing a clean mapping from internal implementation details to standard VAST error reporting codes.
- Returns:
The corresponding VastBeaconErrorCode value for the parsing error, or VastBeaconErrorCode.NO_ERROR if no mapping exists
-
-
-
-