Skip to content

Package: ClassModifierAlreadyAddedException

ClassModifierAlreadyAddedException

nameinstructionbranchcomplexitylinemethod
ClassModifierAlreadyAddedException(Token, String)
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: 6
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.parser;
2:
3: import de.fhdw.wtf.common.constants.parser.ExceptionConstants;
4: import de.fhdw.wtf.common.token.Token;
5:
6: /**
7: * {@link ClassModifierAlreadyAddedException} will be thrown, if an {@link de.fhdw.wtf.common.ast.type.ClassModifier}
8: * add to the list of modifiers and the modifier already exists in the list.
9: *
10: */
11: public class ClassModifierAlreadyAddedException extends AbstractParserException {
12:         
13:         /**
14:          * generated.
15:          */
16:         private static final long serialVersionUID = -368967500775319409L;
17:         
18:         /**
19:          * Constructor of {@link ClassModifierAlreadyAddedException}.
20:          *
21:          * @param token
22:          * token
23:          * @param message
24:          * message
25:          */
26:         protected ClassModifierAlreadyAddedException(final Token token, final String message) {
27:                 super(token, message);
28:         }
29:         
30:         /**
31:          * Creates a {@link ClassModifierAlreadyAddedException}-Object.
32:          *
33:          * @param token
34:          * token
35:          * @return The {@link ClassModifierAlreadyAddedException}-Object.
36:          */
37:         public static ClassModifierAlreadyAddedException create(final Token token) {
38:                 return new ClassModifierAlreadyAddedException(token, ExceptionConstants.CLASS_MODIFIER_ALREADY_ADDED_EXCEPTION);
39:         }
40: }