You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dmitry Kozlov (JIRA)" <ji...@apache.org> on 2015/04/05 05:17:33 UTC

[jira] [Created] (CXF-6331) Wrap exceptions in JAXRSBeanValidationInvoker into Fault so that these exceptions are exposed to ExceptionMapper-s

Dmitry Kozlov created CXF-6331:
----------------------------------

             Summary: Wrap exceptions in JAXRSBeanValidationInvoker into Fault so that these exceptions are exposed to ExceptionMapper-s
                 Key: CXF-6331
                 URL: https://issues.apache.org/jira/browse/CXF-6331
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.0.4
            Reporter: Dmitry Kozlov


As of now only {{ConstraintValidationExceptions}} thrown within {{JAXRSBeanValidationInvoker.invoke(..)}} method are exposed to {{ExceptionMapper}} processing chain.

But both validation framework and underlying validators can throw any other unchecked non-{{ConstraintValidationException}}s, e.g. {{ValidationExceptions}} or any other {{RuntimeException}}.

At the same time only {{Fault}} causes are exposed to {{ExceptionMapper}} chain within {{JAXRSInvoker}}.

Please kindly wrap any non-{{Fault}} exceptions thrown within {{JAXRSBeanValidationInvoker.invoke(..)}} method into {{Fault}} instances so that they could be properly handled by exception mappers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)