Etermal
Embeddable Terminal and shell for OpenGL
Public Member Functions | Public Attributes | List of all members
etm::shellError Class Reference

Describes an error that occurred in the Shell. More...

#include <shellError.h>

Inheritance diagram for etm::shellError:

Public Member Functions

 shellError (const std::string &location, const std::string &message, bool severe) noexcept
 Construct a shellError with args. More...
 
const char * what () const noexcept override
 Gets the c_str value of message. More...
 

Public Attributes

std::string location
 The location where the error occurred, local to the etm namespace.
 
std::string message
 The error message.
 
bool severe
 If the error is severe, that is, the raiser cannot contain/nullify its averse effects.
 

Detailed Description

Describes an error that occurred in the Shell.

Constructor & Destructor Documentation

◆ shellError()

etm::shellError::shellError ( const std::string &  location,
const std::string &  message,
bool  severe 
)
noexcept

Construct a shellError with args.

Parameters
[in]locationThe location the error was detected
[in]messageThe error message
[in]severeIf the error is severe or not

Member Function Documentation

◆ what()

const char* etm::shellError::what ( ) const
overridenoexcept

Gets the c_str value of message.

Returns
message.c_str()

The documentation for this class was generated from the following file: