Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Log4j-Audit 1.0.0
-
None
Description
Trying to create an ExceptionMapper for the validation exceptions I notice that there are 2 kind of exceptions that are thrown when logging.
AbstractEventLogger mostly throws AuditException, but there's even a IllegalStateException thrown, that probably can be changed to an AuditException.
But then there's LogEventFactory that throws ConstraintValidationException for validation errors.
I then thought there's an exception hierarchy in place, but it seems there's no relation between AuditException and ConstraintValidationException.
Please consider making AbstractEventLogger also throw ConstraintValidationException and maybe create some hierarchy for these exceptions to provide them a common base exception, perhaps AuditException.
Attachments
Issue Links
- is blocked by
-
LOG4J2-2421 AbstractEventLogger.logEvent doesn't check for missing required context attributes
- Closed
- links to