|
Common System 0.2.0
Common interfaces and patterns for system integration
|
Maps standard exception types to appropriate error codes. More...
#include <utilities.h>

Static Public Member Functions | |
| static error_info | map_unknown_exception (const std::string &module="") |
| Map unknown exception (catch-all) | |
| static error_info | map_generic_exception (const std::exception &e, const std::string &module="") |
| Map generic exception. | |
| static error_info | map_unknown_exception (const std::string &module="") |
| static error_info | map_generic_exception (const std::exception &e, const std::string &module="") |
Maps standard exception types to appropriate error codes.
Provides automatic error code assignment based on exception type, enabling more precise error handling without manual code specification.
Note: This class is kept for API compatibility but is no longer used internally. The try_catch functions now use multiple catch blocks for better performance.
Definition at line 122 of file utilities.cppm.
|
inlinestatic |
Map generic exception.
| e | Exception object |
| module | Module name |
Definition at line 146 of file utilities.h.
References kcenon::common::error_codes::INTERNAL_ERROR.
Referenced by kcenon::common::try_catch(), and kcenon::common::try_catch_void().

|
inlinestaticexport |
Definition at line 129 of file utilities.cppm.
References kcenon::common::error_codes::INTERNAL_ERROR.
|
inlinestatic |
Map unknown exception (catch-all)
| module | Module name |
Definition at line 135 of file utilities.h.
References kcenon::common::error_codes::INTERNAL_ERROR.
Referenced by kcenon::common::try_catch(), and kcenon::common::try_catch_void().

|
inlinestaticexport |
Definition at line 124 of file utilities.cppm.
References kcenon::common::error_codes::INTERNAL_ERROR.