Audacity 3.2.0
|
A report to Sentry. More...
#include <SentryReport.h>
Classes | |
class | ReportImpl |
Public Types | |
using | CompletionHandler = std::function< void(int httpCode, std::string responseBody)> |
A callback, that will be called when Send completes. More... | |
Public Member Functions | |
Report (const Exception &exception) | |
Create a report from the exception and previously added exception context. More... | |
Report (const Message &message) | |
Create a report with a single log message. More... | |
~Report () | |
void | AddUserComment (const std::string &comment) |
Adds a user comment to the exception report. More... | |
std::string | GetReportPreview () const |
Get a pretty printed report preview. More... | |
void | Send (CompletionHandler completionHandler) const |
Send the report to Sentry. More... | |
Private Attributes | |
std::unique_ptr< ReportImpl > | mImpl |
A report to Sentry.
Definition at line 65 of file SentryReport.h.
using audacity::sentry::Report::CompletionHandler = std::function<void (int httpCode, std::string responseBody)> |
A callback, that will be called when Send completes.
Definition at line 69 of file SentryReport.h.
|
explicit |
Create a report from the exception and previously added exception context.
Definition at line 401 of file SentryReport.cpp.
|
explicit |
Create a report with a single log message.
Definition at line 406 of file SentryReport.cpp.
audacity::sentry::Report::~Report | ( | ) |
Definition at line 397 of file SentryReport.cpp.
void audacity::sentry::Report::AddUserComment | ( | const std::string & | comment | ) |
Adds a user comment to the exception report.
Definition at line 411 of file SentryReport.cpp.
References mImpl.
std::string audacity::sentry::Report::GetReportPreview | ( | ) | const |
Get a pretty printed report preview.
Definition at line 416 of file SentryReport.cpp.
References mImpl.
void audacity::sentry::Report::Send | ( | CompletionHandler | completionHandler | ) | const |
|
private |
Definition at line 91 of file SentryReport.h.
Referenced by AddUserComment(), GetReportPreview(), and Send().