knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
QueryError.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_QUERY_ERROR_H_
7 #define KNOWROB_QUERY_ERROR_H_
8 
9 #include <string>
10 #include <fmt/core.h>
11 #include "knowrob/KnowRobError.h"
12 
13 namespace knowrob {
17  class QueryError : public KnowRobError {
18  public:
24  template<typename ... Args>
25  explicit QueryError(const char *fmt, Args &&... args)
26  : KnowRobError("QueryError", fmt::format(fmt, args...)) {}
27  };
28 }
29 
30 #endif //KNOWROB_QUERY_ERROR_H_
QueryError(const char *fmt, Args &&... args)
Definition: QueryError.h:25