RDK Documentation (Open Sourced RDK Components)
Exception.hpp
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 
22 /**
23 * @defgroup hdmicec
24 * @{
25 * @defgroup ccec
26 * @{
27 **/
28 
29 
30 #ifndef HDMI_CCEC_EXCEPTION_HPP_
31 #define HDMI_CCEC_EXCEPTION_HPP_
32 #include "CCEC.hpp"
33 
34 
35 CCEC_BEGIN_NAMESPACE
36 
37 typedef struct _Throw_e{
38  /*Empty Struct */
39 }Throw_e;
40 
41 
42 class Exception : public std::exception
43 {
44 public:
45  virtual const char* what() const throw()
46  {
47  return "Base Exception..";
48  }
49 private:
50 };
51 
53 {
54 public:
55  virtual const char* what() const throw()
56  {
57  return "Ack not received..";
58  }
59 };
60 
62 {
63 public:
64  virtual const char* what() const throw()
65  {
66  return "Operation Not Supported..";
67  }
68 };
69 
70 
71 class IOException : public Exception
72 {
73 public:
74  virtual const char* what() const throw()
75  {
76  return "IO Exception..";
77  }
78 };
79 
80 
82 {
83 public:
84  virtual const char* what() const throw()
85  {
86  return "Invalid State Exception..";
87  }
88 };
89 
91 {
92 public:
93  virtual const char* what() const throw()
94  {
95  return "Invalid Param Exception..";
96  }
97 };
98 
100 {
101 public:
102  virtual const char* what() const throw()
103  {
104  return "Address Not Available Exception..";
105  }
106 };
107 
108 CCEC_END_NAMESPACE
109 
110 
111 #endif
112 
113 
114 /** @} */
115 /** @} */
_Throw_e
Definition: Exception.hpp:37
CECNoAckException
Definition: Exception.hpp:52
IOException
Definition: Exception.hpp:71
InvalidParamException
Definition: Exception.hpp:90
InvalidStateException
Definition: Exception.hpp:81
OperationNotSupportedException
Definition: Exception.hpp:61
AddressNotAvailableException
Definition: Exception.hpp:99
Exception
Definition: Exception.hpp:42