Skip to content

File include/brisk/core/internal/Throw.hpp


throwException function

template <typename ExceptionType>
[[noreturn]] void throwException(ExceptionType &&exc)

Throws an exception of the specified type or terminates the program.

This function logs the exception and either throws it if exceptions are enabled, or calls std::terminate if exceptions are disabled.
Template param ExceptionType The type of the exception to be thrown, which must be derived from std::exception.
Param exc The exception object to throw.
Exceptions The specified exception type.
Note This function will not return; it either throws the exception or terminates the program.


Auto-generated from sources, Revision , https://github.com/brisklib/brisk/blob//include/brisk/