libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
A nice enum for the exit codes from main(). More...
#include <exit_codes.hpp>
Public Types | |
enum | codes : std::uint8_t { exit_success =EXIT_SUCCESS , exit_unknown_failure =EXIT_FAILURE , exit_unknown_exception =128+_NSIG , exit_stl_exception , exit_jmmcg_exception , exit_crt_exception , exit_parameter_error , exit_print_help , exit_print_version } |
Static Public Member Functions | |
static std::string | to_string (codes e) noexcept(false) |
static std::string | to_string () noexcept(false) |
A nice enum for the exit codes from main().
There is some conflicting advice regarding user-defined exit coeds and permissible values:
Note use of POSIX compatibility macros & starting our custom errors at 129. Also note that we shouldn't exceed 255, as the exit code is truncated to 8 bits, which would cause problems...
Definition at line 43 of file exit_codes.hpp.
enum jmmcg::LIBJMMCG_VER_NAMESPACE::exit_codes::codes : std::uint8_t |
Definition at line 45 of file exit_codes.hpp.
|
inlinestaticnoexcept |
Definition at line 64 of file exit_codes_impl.hpp.
Referenced by isimud::ISIMUD_VER_NAMESPACE::exchanges::create_program_options(), main(), and jmmcg::LIBJMMCG_VER_NAMESPACE::socket::svr< ProcessingRules, SvrMgr >::main().
|
inlinestaticnoexcept |
Definition at line 59 of file exit_codes_impl.hpp.