Skip to content

Package: ConstructorReferenceMismatchException

ConstructorReferenceMismatchException

nameinstructionbranchcomplexitylinemethod
ConstructorReferenceMismatchException(Token)
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
create(Token)
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: package de.fhdw.wtf.common.exception.referencer;
2:
3: import de.fhdw.wtf.common.ast.Constructor;
4: import de.fhdw.wtf.common.ast.ConstructorReference;
5: import de.fhdw.wtf.common.constants.referencer.ExceptionConstans;
6: import de.fhdw.wtf.common.token.Token;
7:
8: /**
9: * A Method of the {@link de.fhdw.wtf.walker.tasks.ConstructorReferencer} throws it, if it can not find a
10: * {@link Constructor} for a {@link ConstructorReference}.
11: *
12: */
13: public final class ConstructorReferenceMismatchException extends ReferencerException {
14:         
15:         /**
16:          * Constructor of {@link ConstructorReferenceMismatchException}.
17:          *
18:          * @param token
19:          * token
20:          */
21:         private ConstructorReferenceMismatchException(final Token token) {
22:                 super(token, ExceptionConstans.CONSTRUCTOR_REFERENCE_MISMATCH_MESSAGE);
23:         }
24:         
25:         /**
26:          * Creates a {@link ConstructorReferenceMismatchException}-Object.
27:          *
28:          * @param token
29:          * token
30:          * @return The {@link ConstructorReferenceMismatchException}-Object.
31:          */
32:         public static ConstructorReferenceMismatchException create(final Token token) {
33:                 return new ConstructorReferenceMismatchException(token);
34:         }
35:         
36: }