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_MATERIALS_EXCEPTION_HPP
2#define VIENNASHE_MATERIALS_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// std
19#include <stdexcept>
20#include <string>
21
22
27namespace viennashe
28{
29 namespace materials
30 {
32 class invalid_material_exception: public std::runtime_error
33 {
34 public:
35 invalid_material_exception(std::string const & str) : std::runtime_error(str) {}
36 };
37
38 } //namespace materials
39} //namespace viennashe
40
41#endif
42
Exception for the case that an invalid material is in use.
Definition: exception.hpp:33
invalid_material_exception(std::string const &str)
Definition: exception.hpp:35
The main ViennaSHE namespace. All functionality resides inside this namespace.
Definition: accessors.hpp:40