Domino Designer (1083)
Domino Administrator (228)
Domino Server (354)
IBM Mashup Center (3)
IBM Verse (0)
Idea Jam (26)
Lotus Enterprise Integrator (11)
Lotus Forms (1)
Lotus Foundations Start (14)
Lotus Technical Information (59)
Lotus Workflow (15)
Lotus WCM (7)
LS09 Best Practices Sessions (0)
Notes Client (1239)
Project Vulcan (1)
Websphere Portal (8)
Websphere Portal Accelerators (1)
Remove Err=4091 from GetDocumentByUNID method
Use this IdeaSpace to post ideas about Domino Designer.
Generation of this error is useless, it only hinders. Quite enough to return
method does not generate errors.
(04 Aug 2011)
No, I don't agree. There is a perfect valid reason for the GetDocumentByUNID to raise an error when You supply an UNID that is not present in the database. You as a programmer EXPECT that the function will return a NotesDocument object. It should not be allowed to return Nothing since that will break OOP standards.
The thing is what should be changed is the errorhandling of LotusScript. If errorhandling where done in more OOP way, then this issue wouldn't be any problem.
I would like to see a try...catch...finally block introduced in LS so that errorhandling can be done as we do it in Java.
(01 Nov 2013)
@Kenneth : what do you mean, returning Nothing breaks OOP standards?
If what you say is correct, then we should also throw errors whenever we do a .getAgent(), .getView(), etc. getDocumentByUNID is the only one whose API is not consistent with the other 'gets' in LS and Java. It's a right pain in the arse, and I always have to program a mini-function with Error handling within it.
Welcome to IdeaJam
You can run
in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.
Use IdeaJam to:
Collect ideas from employees
Solicit feedback and suggestions from employees and customers
Run innovation contests and competitions
Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top
IdeaJam™ works with:
IBM Lotus Quickr
Blogs and Wikis
and other applications.
IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.
Learn more about IdeaJam >>
IdeaJam developed by
is a registered trademark of Elguji Software, Inc.
Report a Bug
IdeaJam Copyright © 2007-2012
Elguji Software, Inc.
(1.9.2 - July 15, 2013)