1 package org.apache.maven.exception;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.Collections;
23 import java.util.List;
24
25
26
27
28
29
30
31
32
33
34
35 public class ExceptionSummary
36 {
37
38 private Throwable exception;
39
40 private String message;
41
42 private String reference;
43
44 private List<ExceptionSummary> children;
45
46 public ExceptionSummary( Throwable exception, String message, String reference )
47 {
48 this( exception, message, reference, null );
49 }
50
51 public ExceptionSummary( Throwable exception, String message, String reference, List<ExceptionSummary> children )
52 {
53 this.exception = exception;
54 this.message = ( message != null ) ? message : "";
55 this.reference = ( reference != null ) ? reference : "";
56 this.children = ( children != null )
57 ? Collections.unmodifiableList( children )
58 : Collections.<ExceptionSummary>emptyList();
59
60 }
61
62 public Throwable getException()
63 {
64 return exception;
65 }
66
67 public String getMessage()
68 {
69 return message;
70 }
71
72 public String getReference()
73 {
74 return reference;
75 }
76
77 public List<ExceptionSummary> getChildren()
78 {
79 return children;
80 }
81
82 }