SessionError.h File
SessionError — the framework's only exception type, carrying a structured SessionReport. More...
Included Headers
#include "pipeline/SessionReport.h"
#include <stdexcept>
#include <string>
#include <utility>
Namespaces Index
| namespace | simaai |
| namespace | neat |
Classes Index
| class | SessionError |
|
Framework exception type carrying a structured SessionReport. More... | |
Description
SessionError — the framework's only exception type, carrying a structured SessionReport.
Every Session::build(), Model::run(), Run::push(), etc. that fails throws SessionError. The exception's what() string is human-readable; .report() returns the structured SessionReport with error_code, repro_note, GStreamer bus messages, a standalone gst-launch-1.0 reproducer, and DOT graph paths. Catch this exception type to handle all framework failures uniformly.
File Listing
The file content with the documentation metadata removed is:
14#include "pipeline/SessionReport.h"
20namespace simaai::neat {
43class SessionError : public std::runtime_error {
46 explicit SessionError(std::string msg) : std::runtime_error(std::move(msg)), report_{} {}
48 SessionError(std::string msg, SessionReport report)
49 : std::runtime_error(std::move(msg)), report_(std::move(report)) {}
51 const SessionReport& report() const {
56 SessionReport report_;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.