cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin" <>
Subject Re: [JAX-RS] Fault handling
Date Thu, 12 Feb 2009 15:16:50 GMT
Hi Gabo

Can you explain a bit more what exactly you're trying to do ?
I think if you have a JAXRS ExceptionMapper for say CustomException which does extend RuntimeException
then you'll know in this 
mapper's implementation what sort of exception it is...

But may be I'm missing something...

Cheers, Sergey

----- Original Message ----- 
From: "Gabo Manuel" <>
To: <>
Sent: Thursday, February 12, 2009 10:11 AM
Subject: [JAX-RS] Fault handling

> Hi All,
> I was just wondering if there is a possibility to acquire the actual Exception object,
and maybe even replace it with another 
> Exception through interceptors.
> I was already able to change the response code (400 or 500) depending on whether the
exception was a checked exception or not. I 
> would however, prefer to be able to automatically notify some people for the unchecked
exceptions. I tried printing all of the 
> available content formats (message.getContentFormats()) to no avail.
> Again, thanks in advance.
> Gabo 

View raw message