我有一些特殊的异常情况,我想抛出并捕获,所以我想定义自己的异常类.
有什么最好的做法?我应该继承std::exception还是std::runtime_error?
std::exception
std::runtime_error
c++ error-handling inheritance exception
c++ ×1
error-handling ×1
exception ×1
inheritance ×1