Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 55984 invoked from network); 12 Feb 2009 15:17:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 15:17:39 -0000 Received: (qmail 33931 invoked by uid 500); 12 Feb 2009 15:17:37 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 33899 invoked by uid 500); 12 Feb 2009 15:17:36 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 33888 invoked by uid 99); 12 Feb 2009 15:17:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 07:17:36 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.77.186.17] (HELO mx3.progress.com) (192.77.186.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 15:17:27 +0000 Received: from mx3.progress.com (127.0.0.1) by mx3.progress.com (MlfMTA v3.2r9) id higuoe0171s0 for ; Thu, 12 Feb 2009 10:17:07 -0500 (envelope-from ) Received: from progress.com ([192.233.92.16]) by mx3.progress.com (SonicWALL 6.2.2.1073) with ESMTP; Thu, 12 Feb 2009 10:16:55 -0500 Received: from NTEXFE01.bedford.progress.com (ntexfe01 [10.128.10.24]) by progress.com (8.13.8/8.13.8) with ESMTP id n1CFGrFU013473 for ; Thu, 12 Feb 2009 10:16:53 -0500 (EST) Received: from sberyoz ([10.5.2.12]) by NTEXFE01.bedford.progress.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 12 Feb 2009 10:16:52 -0500 Message-ID: <032e01c98d24$ef37a430$0c02050a@emea.progress.com> From: "Sergey Beryozkin" To: References: <4993F5CC.1010709@solegysystems.com> Subject: Re: [JAX-RS] Fault handling Date: Thu, 12 Feb 2009 15:16:50 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-OriginalArrivalTime: 12 Feb 2009 15:16:53.0029 (UTC) FILETIME=[EF52CD50:01C98D24] X-Mlf-Version: 6.2.2.1073 X-Mlf-UniqueId: o200902121516530248586 X-Virus-Checked: Checked by ClamAV on apache.org 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