Base exception to inherit custom exceptions from.
Example Usage:
#include <iostream>
{
public:
using SPtr = std::shared_ptr<MyException>;
using UPtr = std::unique_ptr<MyException>;
using WPtr = std::weak_ptr<MyException>;
};
int main(int argc, char *argv[]){
try {
throw MyException("My Error Message!");
}
catch (const MyException& e)
{
std::cerr << e.what() << "\n";
}
return EXIT_SUCCESS;
}
Base exception to inherit custom exceptions from.
Base exception to inherit custom exceptions from.
Definition: Exception.h:48
ExceptionBase(const std::string &msg="")
Definition: Exception.h:54