AstraLog-HPC
Loading...
Searching...
No Matches
errors.hpp File Reference

Unified exception hierarchy for AstraLog-HPC. More...

#include <stdexcept>
Include dependency graph for errors.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  astralog::AstraLogError
 Base class for every AstraLog-HPC error. More...
 
class  astralog::ConfigError
 A configuration file or required environment variable is missing or invalid. More...
 
class  astralog::ValidationError
 An incoming telemetry packet violates the expected schema. More...
 
class  astralog::ParseError
 A JSON or YAML document could not be parsed. More...
 
class  astralog::IoError
 A file could not be opened, read, or written. More...
 
class  astralog::ClusterError
 An SSH, SCP, or SLURM operation against the cluster failed. More...
 
class  astralog::RuleError
 A rule definition references an unknown type or is otherwise malformed. More...
 

Namespaces

namespace  astralog
 

Detailed Description

Unified exception hierarchy for AstraLog-HPC.

Every component throws one of the typed exceptions declared here instead of a bare std::runtime_error, so callers (and each module's main) can react to the kind of failure while still catching the common base astralog::AstraLogError.

Exception Raised when
astralog::ConfigError a config file or required env var is missing/invalid
astralog::ValidationError an incoming telemetry packet violates the schema
astralog::ParseError JSON/YAML parsing fails
astralog::IoError a file cannot be opened/read/written
astralog::ClusterError an SSH/SCP/SLURM operation fails
astralog::RuleError a rule definition is unknown or malformed