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

#include <OntologyError.h>

Inheritance diagram for knowrob::OntologyError:
Collaboration diagram for knowrob::OntologyError:

Public Member Functions

template<typename ... Args>
 OntologyError (const char *fmt, Args &&... args)
 
template<typename ... Args>
 OntologyError (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 data backend-related runtime error.

Definition at line 16 of file OntologyError.h.

Constructor & Destructor Documentation

◆ OntologyError() [1/2]

template<typename ... Args>
knowrob::OntologyError::OntologyError ( 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 OntologyError.h.

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

◆ OntologyError() [2/2]

template<typename ... Args>
knowrob::OntologyError::OntologyError ( 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 OntologyError.h.

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

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