![]() |
Audacity 3.2.0
|
Helper class to store additional details about the exception. More...
Public Member Functions | |
void | Add (std::string parameterName, AnonymizedMessage parameterValue) |
Adds a new item to the exception context. More... | |
std::vector< ExceptionData > | MoveParameters () |
Return the current context and reset it. More... | |
Static Public Member Functions | |
static ExceptionContext & | Get () |
Get an instance of the ExceptionContext. More... | |
Private Member Functions | |
ExceptionContext ()=default | |
Private Attributes | |
std::mutex | mDataMutex |
std::vector< ExceptionData > | mData |
Helper class to store additional details about the exception.
This small class is a thread safe store for the information we want to add to the exception before the exception occurs. For example, we may log SQLite3 return codes here, as otherwise they wont be available when everything fails
Definition at line 49 of file SentryReport.cpp.
|
privatedefault |
|
inline |
Adds a new item to the exception context.
Definition at line 53 of file SentryReport.cpp.
|
inlinestatic |
Get an instance of the ExceptionContext.
Definition at line 72 of file SentryReport.cpp.
|
inline |
Return the current context and reset it.
Definition at line 60 of file SentryReport.cpp.
References anonymous_namespace{NoteTrack.cpp}::swap().
|
private |
Definition at line 82 of file SentryReport.cpp.
|
private |
Definition at line 81 of file SentryReport.cpp.