}
}
break;
default: {
throw new InterpretException(null, StringUtil.format(
"Internal error: unknown function \'{0}\'", functionName));
}
}
// } catch (InterpretException e) {
// throw e;
// } catch (NotesException e) {
// // This case covers where a call to session.evaluate() throws a NotesException
// // We want to continue rendering the page but allow @IsError to pick up on this issue
// // so we return @Error (NaN / FBSUndefined.undefinedValue)
// return FBSUndefined.undefinedValue;
} catch (Exception e) {
throw new InterpretException(e, StringUtil.format("Error while executing function \'{0}\'",
functionName));
}
throw new InterpretException(null, StringUtil.format("Cannot evaluate function \'{0}\'", functionName));
}