ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
exception.hpp
Go to the documentation of this file.
1#ifndef VIENNASHE_UTIL_EXCEPTION_HPP
2#define VIENNASHE_UTIL_EXCEPTION_HPP
3
4/* ============================================================================
5 Copyright (c) 2011-2022, Institute for Microelectronics,
6 Institute for Analysis and Scientific Computing,
7 TU Wien.
8
9 -----------------
10 ViennaSHE - The Vienna Spherical Harmonics Expansion Boltzmann Solver
11 -----------------
12
13 http://viennashe.sourceforge.net/
14
15 License: MIT (X11), see file LICENSE in the base directory
16=============================================================================== */
17
18#include <string>
19#include <stdexcept>
20
25namespace viennashe
26{
27 namespace util
28 {
29
31 class string_conversion_exception : public std::runtime_error
32 {
33 public:
34 string_conversion_exception(std::string const & str) : std::runtime_error(str) {}
35 };
36
38 class linear_solver_exception: public std::runtime_error
39 {
40 public:
41 linear_solver_exception(std::string const & str) : std::runtime_error(str) {}
42 };
43
45 class invalid_range_bounds_exception : public std::runtime_error
46 {
47 public:
48 invalid_range_bounds_exception(std::string const & str) : std::runtime_error(str) {}
49 };
50
52 class invalid_value_exception : public std::runtime_error {
53 public:
54 invalid_value_exception(std::string const & str) : std::runtime_error(str) {}
55 };
56
57
58 } //namespace util
59} //namespace viennashe
60
61#endif
Exception thrown if for a range(a,b) the check a < b fails.
Definition: exception.hpp:46
invalid_range_bounds_exception(std::string const &str)
Definition: exception.hpp:48
Exception which is thrown if an invalid value is found.
Definition: exception.hpp:52
invalid_value_exception(std::string const &str)
Definition: exception.hpp:54
Exception for the case that a linear solver fails (typically with NaN due to zero inner product)
Definition: exception.hpp:39
linear_solver_exception(std::string const &str)
Definition: exception.hpp:41
Exception that is thrown if a string cannot be converted to the respective target type.
Definition: exception.hpp:32
string_conversion_exception(std::string const &str)
Definition: exception.hpp:34
The main ViennaSHE namespace. All functionality resides inside this namespace.
Definition: accessors.hpp:40