-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Is your feature request related to a problem? Please describe.
Currently, error messages in include/micm/util/error.hpp do not explicitly classify the severity of errors. This makes it harder to distinguish between warnings, errors, and critical failures for both developers and users relying on error logging.
Describe the solution you'd like
Update the error handling mechanism (and related message formatting) so that every error message includes a classification: WARN, ERR, or CRIT. This could be implemented as an enum or tagged string, and should be clearly visible in all error outputs, logs, or exceptions.
Describe alternatives you've considered
- Use only two levels of error (warning/error), but this does not allow for differentiation of critical failures.
- Rely on message text to infer severity, but this is less reliable and harder to automate.
Additional context
This change will improve debugging and automated error analysis. Please see include/micm/util/error.hpp for the current error message implementation.