20 #ifndef GENERICMESSAGEEXCEPTION_H_
21 #define GENERICMESSAGEEXCEPTION_H_
24 #include "../basic_types/globals.h"
27 namespace basic_types {
46 virtual const char*
what()
const throw()
override;
GenericMessageException(string exceptionName, string messageBody)
Creates a new GenericMessageException form the input text.
Definition: GenericMessageException.cpp:26
virtual ~GenericMessageException()
Destroys the GenericMessageException instance.
Definition: GenericMessageException.cpp:29
virtual const char * what() const override
Returns a string representation of the exception.
Definition: GenericMessageException.cpp:31
string exceptionMessage
Stores the message of the exception.
Definition: GenericMessageException.h:68
friend std::ostream & operator<<(std::ostream &ost, GenericMessageException &data)
Streams the string representation of the exception using the given ostream.
Definition: GenericMessageException.cpp:35
This class serves as a superclass of all Exceptions.
Definition: GenericMessageException.h:33