Twitch SDK (Internal)
pch.h
Go to the documentation of this file.
1 /********************************************************************************************
2 * Twitch Broadcasting SDK
3 *
4 * This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5 * may not be copied or used except in accordance with the terms of that agreement
6 * Copyright (c) 2012-2016 Twitch Interactive, Inc.
7 *********************************************************************************************/
8 
9 #pragma once
10 
11 #include <stdint.h>
12 #include <string.h>
13 #include <cassert>
14 #include <functional>
15 #include <memory>
16 #include <vector>
17 #include <array>
18 #include <map>
19 #include <list>
20 #include <string>
21 #include <algorithm>
22 
23 #if TTV_INCLUDE_CPPTRANSITIONS
25 #endif
26 
28 #include "twitchsdk/core/tracer.h"
30 
31 
32 namespace ttv
33 {
34  namespace ads
35  {
36  enum class AdError
37  {
38  None = 0,
39 
40  XMLParseError = 100,
43 
44  TraffickingError = 200, // Video player received an Ad type that it was not expecting and/or cannot display.
45  UnexpectedLinearity = 201,
46  UnexpectedDuration = 202,
47  UnexpectedSize = 203,
48 
49  WrapperError = 300, // General wrapper error
50  WrapperFailed = 301, // Fetching wrapper failed or timed out
51  WrapperDepth = 302, // Ad wrappers redirected too many times
52  WrapperNoAdFound = 303, // Ad wrappers never resolved to an actual ad.
53 
54  LinearError = 400, // General linear ad error
55  MediaFileNotFound = 401,
56  MediaFileTimedout = 402,
57  MediaFileIncompatible = 403, // No compatible media files were found
58  MediaFileUnplayable = 405, // Playback of video failed
59 
60  NonLinearAdsError = 500, // General non-linear ad error
61  NonLinearIncompatibleDimension = 501, // Non-linear with these dimensions is not displayable by the client
64 
65  CompanionAdsError = 600,
66  CompanionIncompatibleDimension = 601, // Companion with these dimensions is not displayable by the client
69 
70  UndefinedError = 900, // Generic error, if none of the others fit
71  VPAIDError = 901, // Errors related to VPAID framework
72 
73  AdFetchFailed = 1000
74  };
75  }
76 }
AdError
Definition: pch.h:36
JSON (JavaScript Object Notation).
Definition: adsapi.h:16