Custom exception for when there is some more general error in the input file. More...
#include <InvalidInput.h>
Public Member Functions | |
InvalidInput (const std::string &message) | |
Constructor for just giving an error with no additional yaml input context. | |
InvalidInput (const YAML::Node &node, const std::string &message) | |
Constructor that will give additional context of the inputfile section that is invalid. | |
const char * | what () const noexcept override |
custom what for the custom error message | |
Custom exception for when there is some more general error in the input file.
prism::InvalidInput::InvalidInput | ( | const std::string & | message | ) |
Constructor for just giving an error with no additional yaml input context.
message | the error message for the user |
prism::InvalidInput::InvalidInput | ( | const YAML::Node & | node, |
const std::string & | message ) |
Constructor that will give additional context of the inputfile section that is invalid.
node | the section of the input file that is invalid |
message | the error message to accompany the exception |