|
| bool | isMainAircraftPath (const std::string &path) const |
| | hueristic to identify relative paths as origination from the main aircraft as opposed to something else.
|
| |
| bool | isAnyAircraftPath (const std::string &path) const |
| | helper to determine if a file looks like it belongs to an aircraft.
|
| |
| AggregateErrors::iterator | getAggregateForOccurence (const ErrorOcurrence &oc) |
| | find the appropriate agrgegate for an error, based on its context
|
| |
| AggregateErrors::iterator | getAggregate (Aggregation ag, const std::string ¶m={}) |
| |
| void | collectError (simgear::LoadFailure type, simgear::ErrorCode code, const std::string &details, const sg_location &location) |
| |
| void | collectContext (const std::string &key, const std::string &value) |
| |
| void | presentErrorToUser (AggregateReport &report) |
| |
| void | sendReportToSentry (AggregateReport &report) |
| |
| void | writeReportToStream (const AggregateReport &report, std::ostream &os) const |
| |
| void | writeContextToStream (const ErrorOcurrence &error, std::ostream &os) const |
| |
| void | writeLogToStream (const ErrorOcurrence &error, std::ostream &os) const |
| |
| void | writeSignificantPropertiesToStream (std::ostream &os) const |
| |
| bool | dismissReportCommand (const SGPropertyNode *args, SGPropertyNode *) |
| |
| bool | saveReportCommand (const SGPropertyNode *args, SGPropertyNode *) |
| |
| bool | showErrorReportCommand (const SGPropertyNode *args, SGPropertyNode *) |
| |
Definition at line 168 of file ErrorReporter.cxx.
◆ AggregateErrors
◆ ErrorContext
◆ OccurrenceVec
◆ collectContext()
| void flightgear::ErrorReporter::ErrorReporterPrivate::collectContext |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
|
inline |
◆ collectError()
| void flightgear::ErrorReporter::ErrorReporterPrivate::collectError |
( |
simgear::LoadFailure | type, |
|
|
simgear::ErrorCode | code, |
|
|
const std::string & | details, |
|
|
const sg_location & | location ) |
|
inline |
◆ dismissReportCommand()
| bool flightgear::ErrorReporter::ErrorReporterPrivate::dismissReportCommand |
( |
const SGPropertyNode * | args, |
|
|
SGPropertyNode * | ) |
◆ getAggregate()
| auto flightgear::ErrorReporter::ErrorReporterPrivate::getAggregate |
( |
Aggregation | ag, |
|
|
const std::string & | param = {} ) |
◆ getAggregateForOccurence()
| auto flightgear::ErrorReporter::ErrorReporterPrivate::getAggregateForOccurence |
( |
const ErrorOcurrence & | oc | ) |
|
find the appropriate agrgegate for an error, based on its context
Definition at line 392 of file ErrorReporter.cxx.
◆ isAnyAircraftPath()
| bool flightgear::ErrorReporter::ErrorReporterPrivate::isAnyAircraftPath |
( |
const std::string & | path | ) |
const |
helper to determine if a file looks like it belongs to an aircraft.
This is used to detect potential cross-aircraft packaging bugs which often lead to 'not found' error reports. So we're looking for paths which look plausibly like any aircraft path, even though isMainAircraftPath didn't match on them.
Definition at line 741 of file ErrorReporter.cxx.
◆ isMainAircraftPath()
| bool flightgear::ErrorReporter::ErrorReporterPrivate::isMainAircraftPath |
( |
const std::string & | path | ) |
const |
hueristic to identify relative paths as origination from the main aircraft as opposed to something else.
This is based on containing the aircraft directory name.
Definition at line 728 of file ErrorReporter.cxx.
◆ presentErrorToUser()
| void flightgear::ErrorReporter::ErrorReporterPrivate::presentErrorToUser |
( |
AggregateReport & | report | ) |
|
|
inline |
◆ saveReportCommand()
| bool flightgear::ErrorReporter::ErrorReporterPrivate::saveReportCommand |
( |
const SGPropertyNode * | args, |
|
|
SGPropertyNode * | ) |
◆ sendReportToSentry()
| void flightgear::ErrorReporter::ErrorReporterPrivate::sendReportToSentry |
( |
AggregateReport & | report | ) |
|
|
inline |
◆ showErrorReportCommand()
| bool flightgear::ErrorReporter::ErrorReporterPrivate::showErrorReportCommand |
( |
const SGPropertyNode * | args, |
|
|
SGPropertyNode * | ) |
◆ writeContextToStream()
| void flightgear::ErrorReporter::ErrorReporterPrivate::writeContextToStream |
( |
const ErrorOcurrence & | error, |
|
|
std::ostream & | os ) const |
◆ writeLogToStream()
| void flightgear::ErrorReporter::ErrorReporterPrivate::writeLogToStream |
( |
const ErrorOcurrence & | error, |
|
|
std::ostream & | os ) const |
◆ writeReportToStream()
| void flightgear::ErrorReporter::ErrorReporterPrivate::writeReportToStream |
( |
const AggregateReport & | report, |
|
|
std::ostream & | os ) const |
◆ writeSignificantPropertiesToStream()
| void flightgear::ErrorReporter::ErrorReporterPrivate::writeSignificantPropertiesToStream |
( |
std::ostream & | os | ) |
const |
◆ _activeErrorNode
| SGPropertyNode_ptr flightgear::ErrorReporter::ErrorReporterPrivate::_activeErrorNode |
◆ _activeReportIndex
| int flightgear::ErrorReporter::ErrorReporterPrivate::_activeReportIndex = -1 |
◆ _aggregated
| AggregateErrors flightgear::ErrorReporter::ErrorReporterPrivate::_aggregated |
◆ _aircraftDirectoryName
| string flightgear::ErrorReporter::ErrorReporterPrivate::_aircraftDirectoryName |
◆ _displayNode
| SGPropertyNode_ptr flightgear::ErrorReporter::ErrorReporterPrivate::_displayNode |
◆ _enabledNode
| SGPropertyNode_ptr flightgear::ErrorReporter::ErrorReporterPrivate::_enabledNode |
◆ _fgdataPathPrefix
| string flightgear::ErrorReporter::ErrorReporterPrivate::_fgdataPathPrefix |
◆ _haveDonePostInit
| bool flightgear::ErrorReporter::ErrorReporterPrivate::_haveDonePostInit = false |
◆ _lock
| std::mutex flightgear::ErrorReporter::ErrorReporterPrivate::_lock |
◆ _logCallback
| std::unique_ptr<RecentLogCallback> flightgear::ErrorReporter::ErrorReporterPrivate::_logCallback |
◆ _logCallbackRegistered
| bool flightgear::ErrorReporter::ErrorReporterPrivate::_logCallbackRegistered = false |
◆ _mpReportNode
| SGPropertyNode_ptr flightgear::ErrorReporter::ErrorReporterPrivate::_mpReportNode |
◆ _nextShowTimeout
| SGTimeStamp flightgear::ErrorReporter::ErrorReporterPrivate::_nextShowTimeout |
◆ _reportsDirty
| bool flightgear::ErrorReporter::ErrorReporterPrivate::_reportsDirty = false |
◆ _significantProperties
| string_list flightgear::ErrorReporter::ErrorReporterPrivate::_significantProperties |
properties we want to include in reports, for debugging
Definition at line 248 of file ErrorReporter.cxx.
◆ _terrasyncPathPrefix
| string flightgear::ErrorReporter::ErrorReporterPrivate::_terrasyncPathPrefix |
The documentation for this class was generated from the following file: