commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: [proposal] Location utilities
Date Wed, 14 Sep 2005 21:45:02 GMT
James Carman wrote:

>Tapestry and HiveMind don't always use exceptions to print the line-precise error messages.
 Sometimes, it's just an error/warning message sent to a Log (JCL) (you forgot to include
an implementation for a service point in HiveMind).  Does your Cocoon code support that also
or is it more exception-oriented? I would assume that since the classes on the stack are able
to determine their location information that they could just print it out as a logging message.
>  
>

Exactly! Actually, the location package provides nothing special 
regarding logging, but doesn't prevent it :-)

Locatable objects provide their location to exceptions they throw to 
allow for located stacktrace, and they of course can append their 
location to messages they log. The LocationUtils.toString() method 
provides a uniform string representation, whatever the actual 
implementation of Location is.

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message