[
https://issues.apache.org/jira/browse/SLING-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15190910#comment-15190910
]
Oliver Lietz commented on SLING-5373:
-------------------------------------
[~kwin], how about adding a second constructor in {{DefaultValidationFailure}}
without {{severity}} instead checking for {{null}}? It's even less typing when
using {{0}} as value instead of {{null}} with the existing one.
> Allow different severities per validator
> ----------------------------------------
>
> Key: SLING-5373
> URL: https://issues.apache.org/jira/browse/SLING-5373
> Project: Sling
> Issue Type: Bug
> Components: Validation
> Reporter: Konrad Windszus
> Fix For: Validation 1.0.0
>
>
> It would be good to be able to define a severity either on the validator
> itself or within the validation model. That would allow to later on
> differentiate the handling on how to treat those violations.
> Depending on the violation severity one could decide to either throw an
> exception or just expose the violation failure message for informational
> purposes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)