wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ExceptionInfo Struct Reference

Value-captured exception details safe to forward across an event-loop boundary. More...

#include <Application.h>

Public Attributes

QString englishMessage
 English message for Sentry; equals what for non-Pandaception types.
QString file
 Throw-site file when the exception is a Pandaception, else empty.
int line = 0
 Throw-site line when the exception is a Pandaception, else 0.
QString what
 The translated message for QMessageBox display.

Detailed Description

Value-captured exception details safe to forward across an event-loop boundary.

std::exception references are not safe to capture in a deferred QMetaObject::invokeMethod callback — the exception object is destroyed when the catch block exits. ExceptionInfo holds copies of the bits we need so the deferred Application::handleException callback can run after the throw has finished unwinding.

Definition at line 29 of file Application.h.

Member Data Documentation

◆ englishMessage

QString ExceptionInfo::englishMessage

English message for Sentry; equals what for non-Pandaception types.

Definition at line 32 of file Application.h.

Referenced by Application::handleException().

◆ file

QString ExceptionInfo::file

Throw-site file when the exception is a Pandaception, else empty.

Definition at line 33 of file Application.h.

Referenced by Application::handleException().

◆ line

int ExceptionInfo::line = 0

Throw-site line when the exception is a Pandaception, else 0.

Definition at line 34 of file Application.h.

Referenced by Application::handleException().

◆ what

QString ExceptionInfo::what

The translated message for QMessageBox display.

Definition at line 31 of file Application.h.

Referenced by Application::handleException().


The documentation for this struct was generated from the following file: