You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
by inheriting std::runtime_error, you can use message when you throw one.
Additionally you also gain polymorphic advantage which you can pass your custom error class to the function which takes param as std::runtime_error or std::exception.
Moreover, it has what function at the first state and it's guaranteed to not throw additional error from it.
by inheriting
std::runtime_error
, you can use message when you throw one.Additionally you also gain polymorphic advantage which you can pass your custom error class to the function which takes param as
std::runtime_error
orstd::exception
.Moreover, it has
what
function at the first state and it's guaranteed to not throw additional error from it.The text was updated successfully, but these errors were encountered: