|
Orrery
A GPU-accelerated N-body gravitational simulator
|
A configuration file that could not be read as one. More...
#include <orrery/sim/config_file.hpp>
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. | |
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.
| orrery::sim::ConfigurationError::ConfigurationError | ( | const std::string & | message, |
| std::string | origin, | ||
| std::size_t | line ) |