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