nsbaci 1.0
Loading...
Searching...
No Matches
nsbaci::UIError Struct Reference

UI-ready error representation for display in dialogs. More...

#include <uiError.h>

Static Public Member Functions

static std::vector< UIErrorfromBackendErrors (const std::vector< Error > &errors)
 Converts backend errors to UI-ready errors.

Public Attributes

QString title
QString body
nsbaci::types::ErrSeverity severity

Detailed Description

UI-ready error representation for display in dialogs.

Contains all the information needed to render an error dialog: title, body text, and severity (which maps to an icon).

Member Function Documentation

◆ fromBackendErrors()

std::vector< UIError > nsbaci::UIError::fromBackendErrors ( const std::vector< Error > & errors)
static

Converts backend errors to UI-ready errors.

Parameters
errorsVector of backend Error objects.
Returns
Vector of UIError objects ready for display.
Here is the caller graph for this function:

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