Antonio Gallardo wrote:
> throw new CascadingRuntimeException(e.getMessage(), e);
>
> This will be OK?
Perfect.
:-)
Vadim
> Best Regards,
>
> Antonio Gallardo
>
> On Mie, 9 de Marzo de 2005, 16:30, Vadim Gritsenko dijo:
>
>>Antonio Gallardo wrote:
>>
>>>Hi:
>>>
>>>Please check this code it does not compile in java 1.3:
>>>
>>>/home/agallardo/svn/cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/tools/service/UserrightsService.java:124:
>>>cannot resolve symbol
>>>symbol : constructor RuntimeException (java.io.IOException)
>>>location: class java.lang.RuntimeException
>>> throw new RuntimeException(e);
>>> ^
>>
>>Use CascadingRuntimeException instead.
>>
>>
>>
>>>Please to portal gurus to review why we need here the "new". In my view
>>>this is not needed, but please confirm I can remove the "new".
>>
>>They want to wrap IOException into RuntimeException.
>>
>>Vadim
|