myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: [core] Custom error handling in MyFaces 1.2.2
Date Tue, 19 Feb 2008 16:34:43 GMT
This help?
http://wiki.apache.org/myfaces/Handling_Server_Errors

On Feb 19, 2008 4:59 AM, Ognjen Blagojevic <ognjen@etf.bg.ac.yu> wrote:
> Hi all,
>
> I am trying to override MyFaces error handling for certain exceptions,
> and for others to use the default one. Is it possible?
>
> I was thinking write my custom error handler, with method
>
> public void handleException(FacesContext fc, Exception ex) {
>      if (ex instanceof CertainException) {
>         // do my handling
>      } else {
>         return DefaultErrorHandler.handleException(fc, ex);
>      }
> }
>
> However, I don't know which one is default error handling class? I
> searched MyFaces jars, but coudn't find any public handleException method.
>
> Regards,
> Ognjen
>

Mime
View raw message