|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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
LocationImpl.get(Location)| Method Summary | |
String |
getRawMessage()
Get the raw message of the exception (the one used in the constructor) |
| Methods inherited from interface org.apache.cocoon.util.location.Locatable |
getLocation |
| Method Detail |
public String getRawMessage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||