VetoException within WizardStep logged with severity WARN [message #1823284] |
Tue, 24 March 2020 06:51  |
Eclipse User |
|
|
|
In our project, we make extensive use of the Scout wizard. We display forms inside the Scout wizard. When such a form is validated in the execDeactivate method of the wizard step, the form may throw a VetoException e.g. due to missing mandatory fields.
We observed, however, that such VetoExceptions are logged with severity = WARN whereas VetoExceptions on normal forms (i.e. forms not residing within a wizard step) are logged with severity INFO.
The reason why VetoExceptions on forms within a wizard step are logged with severity = WARN is because such exceptions are handled by the CallableChainExceptionHandler.
We do not want to log VetoExceptions as warnings because they do not point at a possible error in the code. What would you recommend me to do?
A possible way to deal with this would be to implement my own CallableChainExceptionHandler and to register it in my own JobManager. In my own CallableChainExceptionHandler, I could treat VetoExceptions separately.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.29543 seconds