PRISM
 v0.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
prism::InvalidInput Class Reference

Custom exception for when there is some more general error in the input file. More...

#include <InvalidInput.h>

Inheritance diagram for prism::InvalidInput:

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
 

Detailed Description

Custom exception for when there is some more general error in the input file.

Constructor & Destructor Documentation

◆ InvalidInput() [1/2]

prism::InvalidInput::InvalidInput ( const std::string & message)

Constructor for just giving an error with no additional yaml input context.

Parameters
messagethe error message for the user

◆ InvalidInput() [2/2]

prism::InvalidInput::InvalidInput ( const YAML::Node & node,
const std::string & message )

Constructor that will give additional context of the inputfile section that is invalid.

Parameters
nodethe section of the input file that is invalid
messagethe error message to accompany the exception

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