void Chusov::Exceptions::RethrowStdExceptionAsChsvException | ( | std::exception_ptr | eptr | ) |
Tries to rethrow an exception pointed to by the parameter as a predefined exception. If there is no predefined match to the input exception, the function throws the exception as it is.
eptr | an std::exception_ptr object pointing to the exception to be rethrown. |
The function tries to match the input exception, pointed to by eptr
, against a corresponding predefined exception. If the input exception is itself a predefined exception or if the matching is not established, the input exception is rethrown as is.