Revision 1378
Jump to revision: |
|
Author: |
pje |
Date: |
Sun Aug 31 00:23:04 2003 UTC (20 years, 7 months ago) |
Log Message:
'naming.IBasicContext.lookup()' and 'naming.lookup()' now accept a 'default'
argument, similar to that used by 'lookupComponent()' and most other
lookup-like APIs in PEAK. This change was made so that component lookups
don't need to rely on catching 'exceptions.NameNotFound' errors to tell them
when to use the default value. This could hide 'NameNotFound' errors that
were actually from a broken component somewhere in the lookup process. (In
general, it's probably a bad idea to have an exception that's used for both
control flow and real errors!)
Also, removed most trapping of 'NameNotFound' errors throughout PEAK,
except for those in N2, which I'll leave for Ty. :) Last, but not least,
cleaned up documentation of related interfaces/methods.
Changed paths: