msg = msg + fe.getCause().getLocalizedMessage();
}
XspOpenLogUtil.getXspOpenLogItem().logErrorEx(fe.getCause(), msg, null, null);
} else if ("com.ibm.xsp.FacesExceptionEx".equals(error.getClass().getName())) {
// FacesException, so error is on event - doesn't get hit in examples. Can this still get hit??
FacesExceptionEx fe = (FacesExceptionEx) error;
try {
if ("lotus.domino.NotesException".equals(fe.getCause().getClass().getName())) {
// sometimes the cause is a NotesException
NotesException ne = (NotesException) fe.getCause();
msg = msg + "NotesException - " + Integer.toString(ne.id) + " " + ne.text;
} else if ("java.io.IOException".equals(error.getClass().getName())) {
IOException e = (IOException) error;
msg = "Java IO:" + error.toString();
XspOpenLogUtil.getXspOpenLogItem().logErrorEx(e.getCause(), msg, null, null);
} else {
EvaluationExceptionEx ee = (EvaluationExceptionEx) fe.getCause();
InterpretException ie = (InterpretException) ee.getCause();
msg = "Error on " + ee.getErrorComponentId() + " " + ee.getErrorPropertyId() + " property/event:\n\n"
+ Integer.toString(ie.getErrorLine()) + ":\n\n" + ie.getLocalizedMessage() + "\n\n" + ie.getExpressionText();
}
} catch (Throwable t) {
msg = "Unexpected error class: " + fe.getCause().getClass().getName() + "\n Message recorded is: "
+ fe.getCause().getLocalizedMessage();
;
}
XspOpenLogUtil.getXspOpenLogItem().logErrorEx(fe.getCause(), msg, null, null);
} else if ("javax.faces.el.PropertyNotFoundException".equals(error.getClass().getName())) {
// Hit by ErrorOnProperty.xsp
// Property not found exception, so error is on a component property
PropertyNotFoundException pe = (PropertyNotFoundException) error;