Package com.pubmatic.sdk.video
Class POBVastErrorHandler
-
- All Implemented Interfaces:
public class POBVastErrorHandlerIt handles vast errors. Responsible to track fatal vast errors.
-
-
Constructor Summary
Constructors Constructor Description POBVastErrorHandler(POBTrackerHandler tracker)Create instance of POBVastErrorHandler
-
Method Summary
Modifier and Type Method Description voidexecuteVastErrorsWithMacros(@Nullable() List<String> vastErrorUrls, @Nullable() Map<Object, Object> macroMap, @NonNull() POBVastError vastError, @Nullable() Map<String, String> queryMap)Checks weather vast error should be tracked, replace error macro with specific error code and execute error tracker url's. voidexecuteVastErrors(@Nullable() List<String> vastErrorUrls, @NonNull() POBVastError vastError)Checks weather vast error should be tracked, replace error macro with specific error code and execute error tracker url's. static POBErrorconvertToPOBError(@NonNull() POBVastError vastError)Converts POBVastError to POBError. -
-
Method Detail
-
executeVastErrorsWithMacros
void executeVastErrorsWithMacros(@Nullable() List<String> vastErrorUrls, @Nullable() Map<Object, Object> macroMap, @NonNull() POBVastError vastError, @Nullable() Map<String, String> queryMap)
Checks weather vast error should be tracked, replace error macro with specific error code and execute error tracker url's.
- Parameters:
vastErrorUrls- list of vast error url's received in vast response.macroMap- Map of the VAST macros to be replaced with their valuesvastError- vast error with specific error code.
-
executeVastErrors
void executeVastErrors(@Nullable() List<String> vastErrorUrls, @NonNull() POBVastError vastError)
Checks weather vast error should be tracked, replace error macro with specific error code and execute error tracker url's.
- Parameters:
vastErrorUrls- list of vast error url's received in vast response.vastError- vast error with specific error code.
-
convertToPOBError
@Nullable() static POBError convertToPOBError(@NonNull() POBVastError vastError)
Converts POBVastError to POBError.
- Parameters:
vastError- vast error to be converted.- Returns:
converted POBError object.
-
-
-
-