Package: CollectedExceptions

CollectedExceptions

nameinstructionbranchcomplexitylinemethod
CollectedExceptions(List)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
CollectedExceptions(Set)
M: 7 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getCollectedExceptions()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getMessage()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
toString()
M: 7 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package org.overture.interpreter.runtime;
2:
3: import java.util.List;
4: import java.util.Set;
5: import java.util.Vector;
6:
7: public class CollectedExceptions extends RuntimeException implements
8:                 ICollectedRuntimeExceptions
9: {
10:         public final List<Exception> exceptions;
11:
12:         public CollectedExceptions(List<Exception> exception)
13:         {
14:                 this.exceptions = exception;
15:         }
16:
17:         public CollectedExceptions(Set<ContextException> problems)
18:         {
19:                 this(new Vector<Exception>(problems));
20:         }
21:
22:         /**
23:          *
24:          */
25:         private static final long serialVersionUID = 1L;
26:
27:         /*
28:          * (non-Javadoc)
29:          * @see org.overture.interpreter.runtime.ICollectedRuntimeExceptions#getCollectedExceptions()
30:          */
31:         @Override
32:         public List<Exception> getCollectedExceptions()
33:         {
34:                 return this.exceptions;
35:         }
36:
37:         @Override
38:         public String getMessage()
39:         {
40:                 return exceptions.get(0).getMessage();
41:         }
42:
43:         @Override
44:         public String toString()
45:         {
46:                 return exceptions.get(0).toString();
47:         }
48: }