Skip to main content

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

namespacesimaai
namespaceneat

Classes Index

classSessionError

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:

1
12#pragma once
13
15
16#include <stdexcept>
17#include <string>
18#include <utility>
19
20namespace simaai::neat {
21
43class SessionError : public std::runtime_error {
44public:
46 explicit SessionError(std::string msg) : std::runtime_error(std::move(msg)), report_{} {}
49 : std::runtime_error(std::move(msg)), report_(std::move(report)) {}
51 const SessionReport& report() const {
52 return report_;
53 }
54
55private:
56 SessionReport report_;
57};
58
59} // namespace simaai::neat

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.