Chi-Tech
input_parameters.cc File Reference
#include "input_parameters.h"
#include "chi_runtime.h"
#include "chi_log.h"
#include <sstream>
#include <algorithm>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  chi
 

Macros

#define ThrowInputError
 
#define ExceptionParamNotPresent(param_name)
 

Macro Definition Documentation

◆ ExceptionParamNotPresent

#define ExceptionParamNotPresent (   param_name)
Value:
throw std::logic_error(std::string(__PRETTY_FUNCTION__) + ": Parameter \"" + \
param_name + "\" not present in list of parameters.")

Definition at line 15 of file input_parameters.cc.

◆ ThrowInputError

#define ThrowInputError
Value:
throw std::invalid_argument( \
(GetErrorOriginScope().empty() ? "" : GetErrorOriginScope() + "\n") + \
"Input error: " + ObjectType() + "\n" + err_stream.str())

Definition at line 10 of file input_parameters.cc.