Etermal
Embeddable Terminal and shell for OpenGL
shellError.h
1 #ifndef ETERMAL_SHELL_ERROR_H_INCLUDED
2 #define ETERMAL_SHELL_ERROR_H_INCLUDED
3 
4 #include <exception>
5 #include <string>
6 
7 namespace etm {
8 
12  class shellError: public std::exception {
13  public:
16  std::string location;
18  std::string message;
21  bool severe;
28  shellError(const std::string &location, const std::string &message, bool severe) noexcept;
33  const char *what() const noexcept override;
34  };
35 }
36 
37 
38 #endif
etm::shellError::what
const char * what() const noexcept override
Gets the c_str value of message.
etm::shellError
Describes an error that occurred in the Shell.
Definition: shellError.h:12
etm::shellError::shellError
shellError(const std::string &location, const std::string &message, bool severe) noexcept
Construct a shellError with args.
etm::shellError::location
std::string location
The location where the error occurred, local to the etm namespace.
Definition: shellError.h:16
etm::shellError::message
std::string message
The error message.
Definition: shellError.h:18
etm::shellError::severe
bool severe
If the error is severe, that is, the raiser cannot contain/nullify its averse effects.
Definition: shellError.h:21