Skip to content

Commit

Permalink
feat(FEC-13652): add ADS error category to core
Browse files Browse the repository at this point in the history
  • Loading branch information
lianbenjamin committed Apr 7, 2024
1 parent f3ce969 commit c13b1e4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/error-overlay/error-message-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,29 @@ type ErrorDetails = {
};

const errorsMap: Map<number, ErrorDetails> = new Map<number, ErrorDetails>([
/** NETWORK */
[1, {title: 'network_error_title', message: 'network_error_message'}],
/** TEXT */
[2, {title: 'text_error_title', message: 'text_error_message'}],
/** MEDIA */
[3, {title: 'media_error_title', message: 'media_error_message'}],
/** MANIFEST */
[4, {title: 'manifest_error_title', message: 'manifest_error_message'}],
/** STREAMING */
[5, {title: 'streaming_error_title', message: 'streaming_error_message'}],
/** DRM */
[6, {title: 'media_unavailable_error_title', message: 'drm_error_message'}],
/** PLAYER */
[7, {title: 'default_error_title', message: 'default_error_message'}],
/** ADS */
[8, {title: 'default_error_title', message: 'default_error_message'}],
/** STORAGE */
[9, {title: 'default_error_title', message: 'default_error_message'}],
/** MEDIA NOT READY */
[12, {title: 'media_not_ready_error_title', message: 'media_not_ready_error_message'}],
/** GEOLOCATION */
[13, {title: 'geo_location_error_title', message: 'geo_location_error_message'}],
/** KS RESTRICTION */
[14, {title: 'media_unavailable_error_title', message: 'media_unavailable_error_message'}]
]);

Expand Down

0 comments on commit c13b1e4

Please sign in to comment.