cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Kozlov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-6331) Wrap exceptions in JAXRSBeanValidationInvoker into Fault so that these exceptions are exposed to ExceptionMapper-s
Date Sun, 05 Apr 2015 05:27:33 GMT

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

Mime
View raw message