Skip to main content

SessionError.h File

SessionError exception carrying a SessionReport. More...

Included Headers

#include "pipeline/SessionReport.h" #include <stdexcept> #include <string> #include <utility>

Namespaces Index

namespacesimaai
namespaceneat

Classes Index

classSessionError

Description

SessionError exception carrying a SessionReport.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
9
10#include <stdexcept>
11#include <string>
12#include <utility>
13
14namespace simaai::neat {
15
16// Exception that carries a structured report.
17class SessionError : public std::runtime_error {
18public:
19 explicit SessionError(std::string msg) : std::runtime_error(std::move(msg)), report_{} {}
21 : std::runtime_error(std::move(msg)), report_(std::move(report)) {}
22 const SessionReport& report() const {
23 return report_;
24 }
25
26private:
27 SessionReport report_;
28};
29
30} // namespace simaai::neat

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.