CustomException

class CustomException : public exception

Customize the way that exceptions are handled and thrown.

Public Functions

CustomException(std::stringstream &m)

Instantiate an exeption with a user-defined error message.

const char *what() const

Return the user’s message.