Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
namespace errorsupport {
/// Set the global error reporter. This is typically done early in startup.
void set_application_error_reporter(ApplicationErrorReporter error_reporter);
/// Unset the global error reporter. This is typically done at shutdown for
/// platforms that want to cleanup references like Desktop.
void unset_application_error_reporter();
};
callback interface ApplicationErrorReporter {
void report_error(string type_name, string message);
void report_breadcrumb(string message, string module, u32 line, u32 column);
};