Class VastBeaconErrorCodeKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Short mapVastParseErrorToVastError(Short $self) Maps VAST parsing error codes to standardized VAST beacon error codes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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