Mantid
Loading...
Searching...
No Matches
ErrorReporter.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
9#include <boost/python/class.hpp>
10#include <boost/python/reference_existing_object.hpp>
11
13using namespace boost::python;
14
16
17 class_<ErrorReporter>("ErrorReporter", init<std::string, Mantid::Types::Core::time_duration, std::string, bool>())
18 .def(init<std::string, Mantid::Types::Core::time_duration, std::string, bool, std::string, std::string,
19 std::string>())
20
21 .def(init<std::string, Mantid::Types::Core::time_duration, std::string, bool, std::string, std::string,
22 std::string, std::string>())
23
24 .def("sendErrorReport", &ErrorReporter::sendErrorReport, arg("self"), "Sends an error report")
25
26 .def("generateErrorMessage", &ErrorReporter::generateErrorMessage, arg("self"),
27 "Generates an error report as a json string");
28}
void export_ErrorReporter()
ErrorReporter : The error reporter is responsible for sending error reports.
Definition: ErrorReporter.h:22
Kernel::InternetHelper::HTTPStatus sendErrorReport()
Sends an error report.
virtual std::string generateErrorMessage() const
Generates an error string in json format.