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 07:27:33 UTC

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

     [ https://issues.apache.org/jira/browse/CXF-6331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Kozlov updated CXF-6331:
-------------------------------
    Description: 
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.

  was:
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.


> 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)