Added lxcpp's license
[platform/core/security/vasum.git] / libs / lxcpp / exception.hpp
1 /*
2  *  Copyright (C) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  This library is free software; you can redistribute it and/or
5  *  modify it under the terms of the GNU Lesser General Public
6  *  License version 2.1 as published by the Free Software Foundation.
7  *
8  *  This library is distributed in the hope that it will be useful,
9  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  *  Lesser General Public License for more details.
12  *
13  *  You should have received a copy of the GNU Lesser General Public
14  *  License along with this library; if not, write to the Free Software
15  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
16  */
17
18 /**
19  * @file
20  * @author  Mateusz Malicki (m.malicki2@samsung.com)
21  * @brief   lxcpp's exceptions definitions
22  */
23
24 #ifndef LXCPP_EXCEPTION_HPP
25 #define LXCPP_EXCEPTION_HPP
26
27 #include <stdexcept>
28
29 namespace lxcpp {
30
31 class ContainerException : std::runtime_error
32 {
33 public:
34     ContainerException(const std::string& what) : std::runtime_error(what) {}
35 };
36
37 class NotImplemented : ContainerException
38 {
39 public:
40     NotImplemented() : ContainerException(std::string()) {}
41 };
42
43 } // namespace lxcpp
44
45 #endif // LXCPP_EXCEPTION_HPP