Extension of
Locatable for exceptions.
In order to dump location information in the stacktrace, the getMessage() method of
a
Locatable exception should return a concatenation of the raw message (given in the
constructor) and the exception's location, e.g. "foo failed (file.xml:12:3) ". However,
Locatable -aware classes will want to handle the raw message (i.e. "foo failed ")
and location separately. This interface gives access to the raw message.
Note: care should be taken for locatable exceptions to use only immutable and
serializable implementations of
Location See Also: org.apache.cocoon.util.location.LocationImpl.get(Location) since: 2.1.8 version: $Id: LocatableException.java 446917 2006-09-16 19:10:40Z vgritsenko $ |