A namespace for chsvlib generic exception classes and for special helper function.
More...
|
template<bool fProcessSuccessCodeAsUnknownError = true, class ... DescriptionFormatParams> |
void | ChsvExceptionByChsvCode (chsverror_t nCode, const char *restrict pszDescription, DescriptionFormatParams ... format_params) |
| Creates an instance of the ChsvCodeExceptionTempl class, bound with the specified chsvlib error code, and throws it as an exception. . More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true, class ... DescriptionFormatParams> |
void | ChsvExceptionByChsvCode (chsverror_t nCode, const wchar_t *restrict pszDescription, DescriptionFormatParams ... format_params) |
| Creates an instance of the ChsvCodeExceptionTempl class, bound with the specified chsvlib error code, and throws it as an exception. . More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true> |
void | ChsvExceptionByChsvCode (chsverror_t nCode) |
| Creates an instance of the ChsvCodeExceptionTempl class, bound with the specified chsvlib error code, and throws it as an exception. More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true> |
void | ChsvExceptionByChsvCode () |
| Constructs and throws an exception object by a chsvlib error code returned by the GetLastChsvError function. More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true, class ... DescriptionFormatParams> |
void | ChsvExceptionByPosixCode (errno_t nCode, const char *restrict pszDescription, DescriptionFormatParams ... format_params) |
| Creates an instance of the ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the ChsvCodeExceptionTempl class template is chosen depending on the result of a translation of the specified POSIX error code to the corresponding chsvlib error code. . More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true, class ... DescriptionFormatParams> |
void | ChsvExceptionByPosixCode (errno_t nCode, const wchar_t *restrict pszDescription, DescriptionFormatParams ... format_params) |
| Creates an instance of the ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the ChsvCodeExceptionTempl class template is chosen depending on the result of a translation of the specified POSIX error code to the corresponding chsvlib error code. . More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true> |
void | ChsvExceptionByPosixCode (errno_t nCode) |
|
template<bool fProcessSuccessCodeAsUnknownError = true> |
void | ChsvExceptionByPosixCode () |
|
template<bool fProcessSuccessCodeAsUnknownError = true, class ... DescriptionFormatParams> |
void | ChsvExceptionByWindowsCode (unsigned long nCode, const char *restrict pszDescription, DescriptionFormatParams ... format_params) |
| Creates an instance of the ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the ChsvCodeExceptionTempl class template is chosen depending on the result of a translation of the specified Windows error code to the corresponding chsvlib error code. More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true, class ... DescriptionFormatParams> |
void | ChsvExceptionByWindowsCode (unsigned long nCode, const wchar_t *restrict pszDescription, DescriptionFormatParams ... format_params) |
| Creates an instance of the ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the ChsvCodeExceptionTempl class template is chosen depending on the result of a translation of the specified Windows error code to the corresponding chsvlib error code. More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true> |
void | ChsvExceptionByWindowsCode (unsigned long nCode) |
|
template<bool fProcessSuccessCodeAsUnknownError = true> |
void | ChsvExceptionByWindowsCode () |
|
template<bool fProcessSuccessCodeAsUnknownError = true, class ... DescriptionFormatParams> |
void | ChsvExceptionByPlatformCode (chsv_syserror_t nCode, const char *restrict pszDescription, DescriptionFormatParams ... format_params) |
| Creates an instance of the ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the ChsvCodeExceptionTempl class template is chosen depending on the result of a translation of the specified operating system error code to the corresponding chsvlib error code. More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true, class ... DescriptionFormatParams> |
void | ChsvExceptionByPlatformCode (chsv_syserror_t nCode, const wchar_t *restrict pszDescription, DescriptionFormatParams ... format_params) |
| Creates an instance of the ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the ChsvCodeExceptionTempl class template is chosen depending on the result of a translation of the specified operating system error code to the corresponding chsvlib error code. More...
|
|
template<bool fProcessSuccessCodeAsUnknownError = true> |
void | ChsvExceptionByPlatformCode (chsv_syserror_t nCode) |
|
template<bool fProcessSuccessCodeAsUnknownError = true> |
void | ChsvExceptionByPlatformCode () |
|
void | 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. More...
|
|
template<class E > |
void | throw_with_nested (E &&e) |
| Implements a behaviour of the standard std::throw_with_nested function storing an exception having been caught by a caller and retrieved by a call to the std::current_exception function in the constructed nested_exception object and throwing an exception specified by the only parameter. . More...
|
|
template<class E > |
void | rethrow_if_nested (E &&e) |
| Implements a behaviour of the standard std::rethrow_if_nested function checking if the most derived dynamic type of the specified exception inherits the nested_exception class and, if that is true, throws an exception stored by the nested_exception object calling nested_exception::rethrow_nested(). If an exception object given by the parameter is not dynamically connected with the nested_exception class through inheritance, the function does nothing. . More...
|
|
A namespace for chsvlib generic exception classes and for special helper function.