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_MATH_EXCEPTION_HPP
2#define VIENNASHE_MATH_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
19#include <string>
20#include <iostream>
21#include <fstream>
22#include <stdexcept>
23
28namespace viennashe
29{
31 namespace math
32 {
33
35 class truncated_solution_vector_size_exception : public std::runtime_error {
36 public:
37 truncated_solution_vector_size_exception(std::string const & str) : std::runtime_error(str) {}
38 };
39
40
42 class iterate_not_found_exception : public std::runtime_error {
43 public:
44 iterate_not_found_exception(std::string const & str) : std::runtime_error(str) {}
45 };
46
48 class provided_solver_invalid_exception : public std::runtime_error {
49 public:
50 provided_solver_invalid_exception(std::string const & str) : std::runtime_error(str) {}
51 };
52
54 class provided_updater_invalid_exception : public std::runtime_error {
55 public:
56 provided_updater_invalid_exception(std::string const & str) : std::runtime_error(str) {}
57 };
58
59 } //namespace math
60}//namespace viennashe
61
62
63#endif
64
Exception which is thrown if an iterate cannot be retrieved from the vector of iterates (unknowns)
Definition: exception.hpp:42
iterate_not_found_exception(std::string const &str)
Definition: exception.hpp:44
Exception which is thrown if a (linear) solver provided to some nonlinear solver is not valid (e....
Definition: exception.hpp:48
provided_solver_invalid_exception(std::string const &str)
Definition: exception.hpp:50
Exception which is thrown if an updater for a nonlinear solver is not valid (e.g. Nullpointer provide...
Definition: exception.hpp:54
provided_updater_invalid_exception(std::string const &str)
Definition: exception.hpp:56
Exception which is thrown if the size of a solution vector is truncated (too small or big)
Definition: exception.hpp:35
The main ViennaSHE namespace. All functionality resides inside this namespace.
Definition: accessors.hpp:40