cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: Build breaks on JDK1.3 (Re: cvs commit: ...)
Date Tue, 27 May 2003 11:58:47 GMT
Jeff Turner wrote:

>On Mon, May 26, 2003 at 02:29:53PM -0000, cziegeler@apache.org wrote:
>  
>
>>cziegeler    2003/05/26 07:29:53
>>    
>>
>...
>  
>
>>                        SimpleProfileManager.java
>>    
>>
>...
>  
>
>>  +   private boolean isSourceNotFoundException(Throwable t) {
>>  +       while (t != null) {
>>  +           if (t instanceof SourceNotFoundException)
>>  +               return true;
>>  +           t = t.getCause();
>>          }
>>    
>>
>
>Exception.getCause() is a 1.4-only method.  Perhaps t can be typecast to
>a CascadingThrowable?
>

Or use commons.lang.exception.ExceptionUtils which handles all types of 
exception nesting (see ExceptionSelector for sample use)

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



Mime
View raw message