Skip to content

Classify all error messages as WARN, ERR, or CRIT in error.hpp #861

@davidfillmore

Description

@davidfillmore

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions