[Pki-devel] [PATCH] 28 Added CMSException.

Endi Sukma Dewata edewata at redhat.com
Thu Mar 29 21:06:26 UTC 2012


On 3/28/2012 10:36 AM, Endi Sukma Dewata wrote:
> On 3/28/2012 8:39 AM, Endi Sukma Dewata wrote:
>> On 3/27/2012 8:57 PM, Endi Sukma Dewata wrote:
>>> On 3/2/2012 2:51 PM, Endi Sukma Dewata wrote:
>>>> The CMSException was added to simplify error handling in REST services.
>>>> The exception may include an error message and some other attributes.
>>>> When the server throws a CMSException (or its subclass), the exception
>>>> will be marshalled into XML and unmarshalled by the client, then thrown
>>>> again as a new exception which can be caught by the application.
>>>>
>>>> Ticket #100
>>>>
>>>> Note: This patch depends on patch #25-1. This patch also requires
>>>> RESTEasy 2.3.2 jar files to be installed under
>>>> /usr/share/java/resteasy.
>>>> Might need to wait for ticket #29.
>>>
>>> Rebased on top of patch #37-1.
>>
>> Rebased on top of patch #37-2.
>
> Revised the patch to use jar files from standard packages:
> httpcomponents-client
> httpcomponents-core
> jakarta-commons-httpclient

Per Ade's feedback I added a way to specify the HTTP response code in 
the exception. The client will intercept responses with code 4xx and 5xx 
and convert it back into exception.

-- 
Endi S. Dewata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-edewata-0028-4-Added-CMSException.patch
Type: text/x-patch
Size: 40962 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20120329/9a5dbb09/attachment.bin>


More information about the Pki-devel mailing list