omni::application::terminate_handler

SYNOPSIS

The terminate_handler namespace facilitates functions that allow invoking a function when std::terminate has been called.

top

DESCRIPTION

If an omni::application::run function is executed and std::terminate is invoked, any terminate handler delegates will be called in the order they were attached. The handler delegates are called before any exit handlers attached via omni::application::exit_handler are invoked.

top

ERRORS

If an exception occurs on an attached delegate, it will be handled according to omni::sync::user_thread_exception and omni::sync::unhandled_thread_exception.

top

CONSIDERATIONS

This function will only have an effect if you have explicitly called one of the omni::application::run functions to block the main thread until program completion.

top