LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
Loading...
Searching...
No Matches
invalid_type_exception.h
1#ifndef INCGb58a30690f684a2b9422606fd526d0f4
2#define INCGb58a30690f684a2b9422606fd526d0f4
3
4#include <exception>
5#include <string>
6#include <utility>
7
8namespace lf::base {
9
14class InvalidTypeException : public std::exception {
15 private:
16 std::string what_;
17
18 public:
22
23 explicit InvalidTypeException(std::string message)
24 : what_(std::move(message)) {}
25
28
29 ~InvalidTypeException() override = default;
30};
31
32} // namespace lf::base
33
34#endif // INCGb58a30690f684a2b9422606fd526d0f4
Thrown to signal that an argument passed to a function had the wrong (polymorphic) type.
InvalidTypeException(const InvalidTypeException &)=default
InvalidTypeException(InvalidTypeException &&)=default
InvalidTypeException & operator=(InvalidTypeException &&)=delete
~InvalidTypeException() override=default
InvalidTypeException & operator=(const InvalidTypeException &)=delete
Contains basic functionality that is used by other parts of LehrFEM++.
Definition base.h:15