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_SOLVERS_EXCEPTION_HPP
2#define VIENNASHE_SOLVERS_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 <iostream>
20#include <stdexcept>
21
26namespace viennashe
27{
28 namespace solvers
29 {
30
35 class invalid_linear_solver_exception : public std::runtime_error
36 {
37 public:
38 invalid_linear_solver_exception() : std::runtime_error("* ViennaSHE: Invalid linear solver specified. Most likely, the linear solver is not compiled into the binary. Consider recompilation with support for the particular solver enabled.") {}
40 };
41
42
46 class invalid_nonlinear_solver_exception : public std::runtime_error
47 {
48 public:
49 invalid_nonlinear_solver_exception() : std::runtime_error("* ViennaSHE: Invalid nonlinear solver specified.") {}
51 };
52
53 }
54}
55
56#endif
Exception for the case that an invalid solver is in use.
Definition: exception.hpp:36
Exception for the case that an invalid nonlinear solver is in use.
Definition: exception.hpp:47
The main ViennaSHE namespace. All functionality resides inside this namespace.
Definition: accessors.hpp:40