Phoebe developer's documentation  1.1.0
Phonon and Electron Boltzmann Equations
exceptions.h
1 #ifndef EXCEPTIONS_H
2 #define EXCEPTIONS_H
3 
4 #include <cassert>
5 #include <iostream>
6 #include <string>
7 
10 class Error {
11 public:
16  explicit Error(const std::string &errMessage, const int &errCode = 1);
17 };
18 
21 class DeveloperError : public Error {
22 public:
27  explicit DeveloperError(const std::string &errMessage, const int &errCode = 1);
28 };
29 
32 class Warning {
33 public:
34  explicit Warning(const std::string &errMessage);
35 };
36 
37 #endif
Object used to print an error message for developers, and stop the code.
Definition: exceptions.h:21
DeveloperError(const std::string &errMessage, const int &errCode=1)
object constructor.
Definition: exceptions.cpp:18
Object used to print an error message, and stop the code.
Definition: exceptions.h:10
Error(const std::string &errMessage, const int &errCode=1)
object constructor.
Definition: exceptions.cpp:6
Object to print a warning to the user, without stopping the code.
Definition: exceptions.h:32