Exception.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T),
5  * Karlsruhe Institute of Technology (KIT), all rights reserved.
6  *
7  * ArmarX is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  *
11  * ArmarX is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * @author Fabian Peller-Konrad (fabian dot peller-konrad at kit dot edu)
20  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
21  * GNU General Public License
22  */
23 #pragma once
24 
25 #include <string>
26 
28 
30 {
31  /**
32  * @brief A base class for skill exceptions. All skill exceptions inherit from this class
33  */
34  class SkillException : public armarx::LocalException
35  {
36  public:
37  SkillException() = delete;
38 
39  SkillException(const std::string& prettymethod, const std::string& reason);
40  };
41 
42  /**
43  * @brief Indicates that a skill was not found, e.g., by the skill manager.
44  */
46  {
47  public:
48  SkillNotFoundException() = delete;
49 
50  SkillNotFoundException(const std::string& prettymethod, const std::string& reason);
51  };
52 
54  {
55  public:
56  SkillAbortedException() = delete;
57 
58  SkillAbortedException(const std::string& prettymethod, const std::string& reason);
59  };
60 
62  {
63  public:
64  SkillFailedException() = delete;
65 
66  SkillFailedException(const std::string& prettymethod, const std::string& reason);
67  };
68 
69  /**
70  * @brief The NotImplementedYetException class
71  */
73  {
74  public:
75  NotImplementedYetException() = delete;
76 
77  NotImplementedYetException(const std::string& prettymethod);
78  };
79 } // namespace armarx::skills::error
armarx::skills::error::SkillFailedException::SkillFailedException
SkillFailedException()=delete
armarx::skills::error::SkillAbortedException::SkillAbortedException
SkillAbortedException()=delete
armarx::skills::error
Definition: Exception.h:29
armarx::skills::error::SkillNotFoundException::SkillNotFoundException
SkillNotFoundException()=delete
armarx::skills::error::SkillException::SkillException
SkillException()=delete
LocalException.h
armarx::skills::error::SkillAbortedException
Definition: Exception.h:53
armarx::skills::error::SkillNotFoundException
Indicates that a skill was not found, e.g., by the skill manager.
Definition: Exception.h:45
armarx::skills::error::SkillFailedException
Definition: Exception.h:61
armarx::skills::error::NotImplementedYetException::NotImplementedYetException
NotImplementedYetException()=delete
armarx::skills::error::SkillException
A base class for skill exceptions.
Definition: Exception.h:34
armarx::skills::error::NotImplementedYetException
The NotImplementedYetException class.
Definition: Exception.h:72