1#ifndef VIENNASHE_PHYSICS_EXCEPTION_HPP
2#define VIENNASHE_PHYSICS_EXCEPTION_HPP
38 virtual const char*
what()
const throw() {
return msg_.c_str(); }
42 const long & vertex_id)
43 : std::runtime_error(str), temp_(temp), vt_id_(vertex_id) { this->fill_message(); }
56 ss <<
"Invalid temperature '" << temp_ <<
"' on vertex '" << vt_id_ <<
"'" << std::endl;
68 virtual const char*
what()
const throw() {
return _msg.c_str(); }
71 const std::size_t & bin_no)
72 : std::runtime_error(str), _bin_no(bin_no)
84 ss << std::runtime_error::what() <<
" ## No data found for data bin '" << this->_bin_no <<
"'" << std::endl;
Exception which is thrown if there is no data for a given energy.
virtual const char * what() const
data_not_available_exception(std::string const &str, const std::size_t &bin_no)
virtual ~data_not_available_exception()
Exception which is thrown if there is no data for a given energy.
dispersion_not_invertible_exception(std::string const &str)
Exception which is thrown if there is no lattice temperature for a vertex.
no_lattice_temperature_available_exception(std::string const &str, const double &temp, const long &vertex_id)
virtual ~no_lattice_temperature_available_exception()
virtual const char * what() const
The main ViennaSHE namespace. All functionality resides inside this namespace.