Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
util/Exception.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This file is part of the gobelijn software.
4  * Gobelijn is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation, either version 3 of the License, or any later
7  * version. Gobelijn is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9  * or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for details. You should have received
11  * a copy of the GNU General Public License along with the software. If not,
12  * see <http://www.gnu.org/licenses/>.
13  *
14  * Copyright 2012, Jan Broeckhove.
15  */
20 #include <stdexcept>
21 #include <string>
22 #include <utility>
23 
24 namespace UA_CoMP {
25 namespace Util {
26 
28 class Exception : public std::runtime_error
29 {
30 public:
32  Exception(const std::string m) : std::runtime_error(std::move(m)) {}
33 };
34 
35 } // namespace Util
36 } // namespace UA_CoMP
Extremely simple Exception root class.
Exception(const std::string m)
Constructor initializes message for the exception.