I can't access shared right there - but you're right, let's assume
everyone calls this getRootCause.
regards,
Martin
On 9/1/07, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
> Hi!
> > + //handle JSP-Exceptions - equally long know for swallowing
> > root-causes ;)
> > +
> > if(ex.getClass().getName().equals("javax.servlet.jsp.JspException")) {
> > + initCausePerReflection(ex,"getRootCause");
> > + }
> >
> Why do you check against the class name all over?
> I think checking if there is a getRootCause else fallback to getCause
> would do it, even for inherited classes then.
>
> In shared.util we have a ExceptionUtils class which do it that way -
> works pretty fine.
>
> Ciao,
> Mario
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces