34#include <NDEVR/LogView.h>
35#include <NDEVR/QCustomTabWidget.h>
36#include <NDEVR/Dictionary.h>
37#include <NDEVR/Exception.h>
38#include <NDEVR/UUID.h>
107 Ui::ErrorDialogUI*
ui;
The equivelent of std::vector but with a bit more control.
Manages crash handling, exception reporting, and mini-dump creation.
A hash-based key-value store, useful for quick associative lookups.
Provides consistent interface to handle errors through the throw expression.
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
A table showing a specific log that allows the user to scroll around to view various log entries.
static QTErrorBrowser * defaultInstance()
Returns the singleton instance of the error browser.
QSize sizeHint() const override
Returns the recommended size for the error browser widget.
void addErrorDialog(QTErrorDialog *dialog)
Adds an error dialog as a new tab in the browser.
A dialog typically shown as a tab that displays an exception to the user.
static void ErrorHandlingInit()
Initializes the global error handling system.
LogPtr m_log
The log associated with this error dialog.
Ui::ErrorDialogUI * ui
The auto-generated UI form for the error dialog.
QTErrorDialog(const Exception &exception, LogPtr log=LogPtr(), QWidget *parent=nullptr)
Constructs an error dialog for the given exception.
void onIgnoreSignal()
Signal emitted when the user ignores the error.
UUID m_exception_id
Unique identifier for the exception being displayed.
LogView * m_log_dock
Widget displaying log entries related to the error.
QSize sizeHint() const override
Returns the recommended size for this dialog.
QSize minimumSizeHint() const override
Returns the minimum recommended size for this dialog.
static void CreateErrorDialog(Exception exception, LogPtr log=LogPtr())
Creates and shows an error dialog for the given exception.
static bool s_is_manager_active
Whether the error handling manager is currently active.
static void HandlePendingExceptions()
Processes and displays any exceptions that were queued while dialogs were at capacity.
static void ErrorHandlingStop()
Stops the global error handling system.
void onAccept()
Slot invoked when the user accepts or acknowledges the error.
static Dictionary< UUID, uint04 > s_ignored_messages
Tracks how many times each exception has been ignored by UUID.
static Buffer< Exception > s_pending_exceptions
Queue of exceptions waiting to be shown.
static uint04 s_number_of_active_dialogs
Current number of visible error dialogs.
void onIgnore()
Slot invoked when the user chooses to ignore the error.
static CrashManager * s_global_crash_manager
Global crash manager instance for fatal error handling.
void onAcceptSignal()
Signal emitted when the user accepts or acknowledges the error.
static uint04 s_max_num_of_active_dialogs
Maximum number of error dialogs allowed simultaneously.
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...