1#ifndef VIENNASHE_EXCEPTION_HPP
2#define VIENNASHE_EXCEPTION_HPP
80 virtual const char*
what()
const throw() {
return _msg.c_str(); }
83 : std::runtime_error(str), _value(value)
84 { this->fill_message(); }
95 ss <<
"Invalid value '" << this->_value <<
"' encountered. " << std::endl;
96 ss << std::runtime_error::what();
108 virtual const char*
what()
const throw() {
return _msg.c_str(); }
111 : std::runtime_error(str), _file_name(file_name), _line(line_of_code)
112 { this->fill_message(); }
117 std::string _file_name;
123 std::stringstream ss;
124 ss <<
"Unavailable feature in '" << _file_name <<
"' on line '" << _line <<
"' " << std::endl;
125 ss << std::runtime_error::what();
Exception thrown in the case that an equation assembler cannot be found.
assembly_not_implemented_exception(std::string const &str)
Exception thrown in the case that any code does not support the given carrier type.
carrier_type_not_supported_exception(std::string const &str)
Exception for the case that a segment or a segment that does not belong to a mesh is encountered.
invalid_boundary_condition_exception(std::string const &str)
Exception for the case that an invalid cell is encountered.
invalid_cell_exception(std::string const &str)
Exception for the case that an invalid doping is encountered.
invalid_doping_in_device_exception(std::string const &str)
Exception for the case that an invalid lattice temperature is encountered.
invalid_lattice_temperature_in_device_exception(std::string const &str)
Exception for the case that a segment or a segment that does not belong to a mesh is encountered.
invalid_segment_exception(std::string const &str)
Exception for the case that an invalid lattice temperature is encountered.
invalid_trap_density_exception(std::string const &str)
Exception for the case that an invalid lattice temperature is encountered.
invalid_trap_energy_exception(std::string const &str)
Exception for the case that an invalid value (depends on the method called) is encountered.
invalid_value_exception(std::string const &str)
invalid_value_exception(std::string const &str, const double &value)
virtual const char * what() const
virtual ~invalid_value_exception()
Exception in case a (requested) quantity cannot be found.
quantity_not_found_exception(std::string const &str)
Exception thrown in the case that an equation solver failed.
solver_failed_exception(std::string const &str)
Exception for the case that a requested feature is not available (due to configuration or due to not ...
unavailable_feature_exception(std::string const &str)
unavailable_feature_exception(std::string const &str, std::string const &file_name, std::string const &line_of_code)
virtual ~unavailable_feature_exception()
virtual const char * what() const
The main ViennaSHE namespace. All functionality resides inside this namespace.