On Thursday, 03/28/2002 at 10:31 PST, John Gentilin <[EMAIL PROTECTED]> wrote: > 1) Create an object that will product an empty document statically ?? > return this document instead of DTM.NULL.
I like this answer architecturally -- have a singleton empty-document object, and have a convenience method for extensions that lets them obtain it for whatever purpose calls for it (including return value). > 2) Have the extension handler detect a return of DTM.NULL and > translate that to an empty document I like this answer as a convenience -- returning null would be translated into returning the empty singleton. > 3) Create a set of exception classes. Extensions should have an architected error reporting mechanism, which might include warnings and non-fatal errors. But if someone isses a fatal error or throws an exception, I'd suggest that we should _not_ attempt to proceed past it.
