knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
PythonError.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_PYTHON_ERROR_H
7
#define KNOWROB_PYTHON_ERROR_H
8
9
#include "memory"
10
#include "knowrob/KnowRobError.h"
11
12
namespace
knowrob
{
18
class
PythonError :
public
KnowRobError {
19
public
:
20
PythonError
();
21
protected
:
22
// error data parsed from Python
23
struct
ErrorData
{
24
ErrorData
();
25
std::string
exc_type
;
26
std::string
exc_msg
;
27
std::string
exc_trace
;
28
std::optional<std::string>
exc_file
;
29
std::optional<int>
exc_line
;
30
};
31
ErrorData
errorData_
;
32
33
explicit
PythonError
(
const
ErrorData
&errorData);
34
35
static
ErrorData
makeErrorData
();
36
};
37
38
}
// knowrob
39
40
#endif
//KNOWROB_PYTHON_ERROR_H
knowrob::PythonError::makeErrorData
static ErrorData makeErrorData()
knowrob::PythonError::PythonError
PythonError()
knowrob::PythonError::PythonError
PythonError(const ErrorData &errorData)
knowrob::PythonError::errorData_
ErrorData errorData_
Definition:
PythonError.h:31
knowrob::parsers::terms::string
TermRule & string()
Definition:
terms.cpp:63
knowrob
Definition:
DataSource.h:13
knowrob::PythonError::ErrorData
Definition:
PythonError.h:23
knowrob::PythonError::ErrorData::exc_file
std::optional< std::string > exc_file
Definition:
PythonError.h:28
knowrob::PythonError::ErrorData::exc_trace
std::string exc_trace
Definition:
PythonError.h:27
knowrob::PythonError::ErrorData::exc_msg
std::string exc_msg
Definition:
PythonError.h:26
knowrob::PythonError::ErrorData::exc_type
std::string exc_type
Definition:
PythonError.h:25
knowrob::PythonError::ErrorData::ErrorData
ErrorData()
knowrob::PythonError::ErrorData::exc_line
std::optional< int > exc_line
Definition:
PythonError.h:29
include
knowrob
integration
python
PythonError.h
Generated by
1.9.1