knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::ReasonerError Class Reference

#include <ReasonerError.h>

Inheritance diagram for knowrob::ReasonerError:
Collaboration diagram for knowrob::ReasonerError:

Public Member Functions

template<typename ... Args>
 ReasonerError (const char *fmt, Args &&... args)
 
template<typename ... Args>
 ReasonerError (const char *fmt, Args &&... args)
 
- Public Member Functions inherited from knowrob::KnowRobError
 KnowRobError (std::string_view exc_type, std::string_view msg)
 
 KnowRobError (std::string_view exc_type, std::string_view msg, std::string_view trace)
 
 KnowRobError (std::string_view exc_type, std::string_view msg, std::string_view file, int line)
 
 KnowRobError (std::string_view exc_type, std::string_view msg, std::string_view file, int line, std::string_view trace)
 
void setFile (std::string_view file)
 
void setLine (int line)
 
auto file () const
 
auto line () const
 
bool hasFile () const
 
 KnowRobError (std::string_view exc_type, std::string_view msg)
 
 KnowRobError (std::string_view exc_type, std::string_view msg, std::string_view trace)
 
 KnowRobError (std::string_view exc_type, std::string_view msg, std::string_view file, int line)
 
 KnowRobError (std::string_view exc_type, std::string_view msg, std::string_view file, int line, std::string_view trace)
 
void setFile (std::string_view file)
 
void setLine (int line)
 
auto file () const
 
auto line () const
 
bool hasFile () const
 

Additional Inherited Members

- Protected Attributes inherited from knowrob::KnowRobError
std::optional< std::string > file_
 
int line_
 

Detailed Description

A reasoner-related runtime error.

Definition at line 16 of file ReasonerError.h.

Constructor & Destructor Documentation

◆ ReasonerError() [1/2]

template<typename ... Args>
knowrob::ReasonerError::ReasonerError ( const char *  fmt,
Args &&...  args 
)
inlineexplicit
Template Parameters
Argsfmt-printable arguments.
Parameters
fmtA fmt string pattern.
argslist of arguments used to instantiate the pattern.

Definition at line 24 of file ReasonerError.h.

25  : KnowRobError("ReasonerError", fmt::format(fmt, args...)) {}
KnowRobError(std::string_view exc_type, std::string_view msg)

◆ ReasonerError() [2/2]

template<typename ... Args>
knowrob::ReasonerError::ReasonerError ( const char *  fmt,
Args &&...  args 
)
inlineexplicit
Template Parameters
Argsfmt-printable arguments.
Parameters
fmtA fmt string pattern.
argslist of arguments used to instantiate the pattern.

Definition at line 24 of file ReasonerError.h.

25  : KnowRobError("ReasonerError", fmt::format(fmt, args...)) {}

The documentation for this class was generated from the following file: