#include <basis/astring.h>
Go to the source code of this file.
Classes | |
| class | loggers::critical_events |
| Provides a means of logging events for runtime problems. More... | |
Namespaces | |
| namespace | loggers |
A logger that sends to the console screen using the standard output device. | |
Defines | |
| #define | CAUSE_BREAKPOINT |
| This macro wraps the notion of stopping in the debugger. | |
| #define | REQUIRE(check) if (!check) CAUSE_BREAKPOINT; |
| Tests the value "check" to ensure that it's not zero. | |
| #define | non_continuable_error(c, f, i) |
| an extra piece of information used, if available, in bounds_halt below. | |
| #define | continuable_error(c, f, i) |
| #define | console_error(c, f, i) critical_events::FL_console_error(__FILE__, __LINE__, c, f, i) |
| #define | deadly_error(c, f, i) critical_events::FL_deadly_error(__FILE__, __LINE__, c, f, i) |
| #define | out_of_memory_now(c, f) critical_events::FL_out_of_memory_now(__FILE__, __LINE__, c, f) |
| #define CAUSE_BREAKPOINT |
This macro wraps the notion of stopping in the debugger.
Definition at line 24 of file critical_events.h.
Referenced by loggers::critical_events::FL_deadly_error().
| #define console_error | ( | c, | |||
| f, | |||||
| i | ) | critical_events::FL_console_error(__FILE__, __LINE__, c, f, i) |
Definition at line 83 of file critical_events.h.
| #define continuable_error | ( | c, | |||
| f, | |||||
| i | ) |
critical_events::FL_continuable_error(__FILE__, __LINE__, c, f, i, \
"Runtime Problem Information")
Definition at line 80 of file critical_events.h.
Referenced by processes::thread_cabinet::cancel_all(), versions::version_checker::complain_cannot_load(), versions::version_checker::complain_wrong_version(), crypto::blowfish_crypto::decrypt(), crypto::blowfish_crypto::encrypt(), octopi::infoton::fast_unpack(), cromp::cromp_transaction::flatten(), crypto::rsa_crypto::generate_key(), loggers::critical_events::implement_bounds_halt(), octopi::octopus::remove_tentacle(), crypto::rsa_crypto::set_key(), processes::thread_cabinet::stop_all(), and cromp::cromp_transaction::unflatten().
| #define deadly_error | ( | c, | |||
| f, | |||||
| i | ) | critical_events::FL_deadly_error(__FILE__, __LINE__, c, f, i) |
Definition at line 85 of file critical_events.h.
Referenced by structures::hash_table< key_type, contents >::acquire(), structures::hash_table< key_type, contents >::add(), structures::hash_table< key_type, contents >::apply(), structures::copy_hash_table(), structures::hash_table< key_type, contents >::elements(), structures::hash_table< key_type, contents >::find(), loggers::critical_events::implement_bounds_halt(), bookmark_tree::process_category(), structures::hash_table< key_type, contents >::rehash(), structures::hash_table< key_type, contents >::reset(), textual::byte_formatter::shifted_string_to_bytes(), structures::hash_table< key_type, contents >::zap(), and structures::hash_table< key_type, contents >::~hash_table().
| #define non_continuable_error | ( | c, | |||
| f, | |||||
| i | ) |
critical_events::FL_non_continuable_error(__FILE__, __LINE__, c, f, i, \
"A Non-Continuable Runtime Problem Has Occurred")
an extra piece of information used, if available, in bounds_halt below.
Verifies that "value" is between "low" and "high", inclusive.
"Value" must be an object for which greater than and less than are defined. The static_class_name() method and func definition are used to tag the complaint that is emitted when problems are detected. Note that if CATCH_ERRORS is defined, then the program is _halted_ if the value is out of bounds. Otherwise, the "to_return" value is returned. Provide some macros that will automatically add the file and line number.
These use the functions below to report different types of error situations and in some cases, exit the program.
Definition at line 77 of file critical_events.h.
Referenced by write_build_config::execute(), main(), nechung_oracle::pick_random(), bookmark_tree::process_category(), bookmark_tree::read_csv_file(), write_build_config::write_output_file(), and processes::safe_callback::~safe_callback().
| #define out_of_memory_now | ( | c, | |||
| f | ) | critical_events::FL_out_of_memory_now(__FILE__, __LINE__, c, f) |
Definition at line 87 of file critical_events.h.
| #define REQUIRE | ( | check | ) | if (!check) CAUSE_BREAKPOINT; |
Tests the value "check" to ensure that it's not zero.
This can be used instead of an ASSERT macro to check conditions in builds with ERRORS_ARE_FATAL turned on. This macro is orthogonal to the build being built with debugging or release features.
Definition at line 44 of file critical_events.h.
1.6.3