Michael Nash wrote:
>
> ...Internally, every error has a number, which refers
> to a bookmark that the user can go to...
I've always felt that error numbers subvert a type system and are
redundant. How about doing something like this:
With reflection, use the exception's class name where you were using
the error number. It becomes the paramter of the constructed url.
The html text gets provided by a method in the exception. A
"prototype" exception object is instantiated if the user retrieves the
url, so that its getHTML method can be called.
Would this work for you? You'd get the same effect without
maintaining and using error numbers.
- Robb
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html