RDK Documentation (Open Sourced RDK Components)
illegalArgumentException.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 /**
24 * @defgroup devicesettings
25 * @{
26 * @defgroup rpc
27 * @{
28 **/
29 
30 
31 #ifndef _DS_MGR_ILLEGALARGUMENTEXCEPTION_HPP_
32 #define _DS_MGR_ILLEGALARGUMENTEXCEPTION_HPP_
33 
34 #include "exception.hpp"
35 #include <iostream>
36 
37 namespace device {
38 
39 class IllegalArgumentException : public device::Exception {
40 public:
41  IllegalArgumentException(const char *msg = "Illegal Argument") throw (): device::Exception(msg) {
42  };
43 
44  virtual ~IllegalArgumentException() throw(){};
45 };
46 
47 }
48 
49 #endif /* ILLEGALARGUMENTEXCEPTION_HPP_ */
50 
51 
52 /** @} */
53 /** @} */
device::IllegalArgumentException::~IllegalArgumentException
virtual ~IllegalArgumentException()
This function is a default destructor of the class IllegalArgumentException.
Definition: illegalArgumentException.hpp:74
device::Exception
This class handles exceptions occurring in DS module.
Definition: exception.hpp:52
device::IllegalArgumentException::IllegalArgumentException
IllegalArgumentException(const char *msg="Illegal Argument")
This function is a parameterised constructor of IllegalArgumentException class. It initializes the in...
Definition: illegalArgumentException.hpp:64
Exception
Definition: Exception.hpp:42