Orrery
A GPU-accelerated N-body gravitational simulator
Loading...
Searching...
No Matches
orrery::sim::ConfigurationError Class Reference

A configuration file that could not be read as one. More...

#include <orrery/sim/config_file.hpp>

Inheritance diagram for orrery::sim::ConfigurationError:

Public Member Functions

 ConfigurationError (const std::string &message, std::string origin, std::size_t line)
 origin is the file name, or whatever else names the stream for a caller that parsed something other than a file.
const std::string & origin () const noexcept
 The name of what was being parsed.
std::size_t line () const noexcept
 The line the problem was on, counting from one.

Detailed Description

A configuration file that could not be read as one.

Carries where the problem was as well as what it was, since a message that says only "expected a number" is of little use against a file with sixty lines in it. Configuration is a setup boundary, which is where section 4 of the implementation plan permits exceptions; nothing in this class is ever thrown from inside a step.

Constructor & Destructor Documentation

◆ ConfigurationError()

orrery::sim::ConfigurationError::ConfigurationError ( const std::string & message,
std::string origin,
std::size_t line )

origin is the file name, or whatever else names the stream for a caller that parsed something other than a file.

line counts from one, and is zero for a complaint about the document as a whole.


The documentation for this class was generated from the following file: