knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
OntologyError.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_ONTOLOGY_ERROR_H_
7 #define KNOWROB_ONTOLOGY_ERROR_H_
8 
9 #include <fmt/core.h>
10 #include <knowrob/KnowRobError.h>
11 
12 namespace knowrob {
16  class OntologyError : public KnowRobError {
17  public:
23  template<typename ... Args>
24  explicit OntologyError(const char *fmt, Args &&... args)
25  : KnowRobError("OntologyError", fmt::format(fmt, args...)) {}
26  };
27 }
28 
29 #endif //KNOWROB_ONTOLOGY_ERROR_H_
OntologyError(const char *fmt, Args &&... args)
Definition: OntologyError.h:24