Function declare_error

Synopsis

#include "breeze/process/program.hpp"

void declare_error(gravity g)

Description

Declares a program error.

Parameters

g - The gravity of the error. If the gravity is higher than any seen previously, it is saved to be used in exit_code().

If the gravity is fatal or higher, this will also terminate the program by calling program::terminate() (when the gravity is fatal) or std::abort() (when it is internal).

Source

Line 140 in breeze/process/program.hpp.