1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose;
17
18 import java.io.Serializable;
19
20 /***
21 * Information about a DiagnosticResult. In the case of an
22 * exception, the summary would contain exception.getMessage()
23 * and the body the exceptions stacktrace.
24 *
25 * @author jmccrindle
26 */
27 public interface DiagnosticMessage extends Serializable {
28
29 /***
30 * A summary of the diagnostic result. Ideally should be
31 * only a single line.
32 *
33 * @return a summary of the diagnostic result message
34 */
35 String getSummary();
36
37 /***
38 * @return more details about the diagnostic result
39 */
40 String getBody();
41 }