I\'ve seen at least one reliable source (a C++ class I took) recommend that application-specific exception classes in C++ should inherit from std::exception
. I\
Reason for inheriting from std::exception
is it "standard" base class for exceptions, so it is natural for other people on a team, for example, to expect that and catch base std::exception
.
If you are looking for convenience, you can inherit from std::runtime_error
that provides std::string
constructor.