kevinpollet/hibernate-validator — comment on commit 03c4f73b3fbbf7ca0d92ec9fd52404f69636c39a
File: hibernate-validator/src/main/java/org/hibernate/validator/internal/cfg/context/ConfiguredConstraint.java line 104
By hferentschik:

What happens here really? Why do we need to pass the exception message and the exception itself? Looking at the _Log_ interface I see:

@Message(id = 12, value = "Unable to create annotation for configured constraint: %s.")
ValidationException unableToCreateAnnotationForConfiguredConstraint(String message, @Cause RuntimeException e);

How will the final _ValidationException_ look like and which message will it have (The one from @Message or the one from the parameter passed to it)? I guess I just don't know what JBoss logging does here.