1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.struts.flow.core.location;
17
18 /***
19 * Extension of {@link Locatable} for exceptions.
20 * <p>
21 * In order to dump location information in the stacktrace, the <code>getMessage()</code> method of
22 * a {@link Locatable} exception should return a concatenation of the raw message (given in the
23 * constructor) and the exception's location, e.g. "<code>foo failed (file.xml:12:3)</code>". However,
24 * {@link Locatable}-aware classes will want to handle the raw message (i.e. "<code>foo failed</code>")
25 * and location separately. This interface gives access to the raw message.
26 * <p>
27 * <strong>Note:</strong> care should be taken for locatable exceptions to use only immutable and
28 * serializable implementations of {@link Location} ({@see org.apache.struts.flow.core.location.LocationImpl#get(Location)}).
29 *
30 * @since 2.1.8
31 * @version $Id: LocatableException.java 233343 2005-08-18 18:06:44Z sylvain $
32 */
33 public interface LocatableException extends Locatable {
34
35 /***
36 * Get the raw message of the exception (the one used in the constructor)
37 *
38 * @return the raw message
39 */
40 public String getRawMessage();
41 }