Package: CollectedContextException

CollectedContextException

nameinstructionbranchcomplexitylinemethod
CollectedContextException(ContextException, List)
M: 0 C: 21
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 5
100%
M: 0 C: 1
100%
CollectedContextException(ContextException, Set)
M: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
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: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

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 CollectedContextException extends ContextException implements
8:                 ICollectedRuntimeExceptions
9: {
10:         public final List<Exception> exceptions;
11:         String message = "";
12:
13:         public CollectedContextException(ContextException e,
14:                         List<Exception> exceptions)
15:         {
16:                 super(e.number, e.getMessage(), e.location, e.ctxt);
17:                 message = e.getMessage();
18:                 this.exceptions = exceptions;
19:         }
20:
21:         public CollectedContextException(ContextException toThrow,
22:                         Set<ContextException> problems)
23:         {
24:                 this(toThrow, new Vector<Exception>(problems));
25:         }
26:
27:         /**
28:          *
29:          */
30:         private static final long serialVersionUID = 1L;
31:
32:         /*
33:          * (non-Javadoc)
34:          * @see org.overture.interpreter.runtime.ICollectedRuntimeExceptions#getCollectedExceptions()
35:          */
36:         @Override
37:         public List<Exception> getCollectedExceptions()
38:         {
39:                 return this.exceptions;
40:         }
41:
42:         @Override
43:         public String getMessage()
44:         {
45:                 return message;
46:         }
47: }