Skip to content

Package: NoDoubleSquareBracketCloseException

NoDoubleSquareBracketCloseException

nameinstructionbranchcomplexitylinemethod
NoDoubleSquareBracketCloseException(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: 2
100%
M: 0 C: 1
100%

Coverage

1: package de.fhdw.wtf.common.exception.parser;
2:
3: import de.fhdw.wtf.common.token.Token;
4:
5: /**
6: * The {@link NoDoubleSquareBracketCloseException} will be thrown if a
7: * {@link de.fhdw.wtf.common.token.symbols.DoubleSquareBracketCloseToken} is expected, but an another Token was found.
8: *
9: */
10: public final class NoDoubleSquareBracketCloseException extends AbstractParserException {
11:         
12:         /**
13:          * generated.
14:          */
15:         private static final long serialVersionUID = 6007461937658922620L;
16:         
17:         /**
18:          * Constructor of {@link NoDoubleSquareBracketCloseException}.
19:          *
20:          * @param token
21:          * token
22:          * @param message
23:          * message
24:          */
25:         private NoDoubleSquareBracketCloseException(final Token token, final String message) {
26:                 super(token, message);
27:         }
28:         
29:         /**
30:          * Creates a {@link NoDoubleSquareBracketCloseException}-Object.
31:          *
32:          * @param token
33:          * token
34:          * @return The {@link NoDoubleSquareBracketCloseException}-Object.
35:          */
36:         public static NoDoubleSquareBracketCloseException create(final Token token) {
37:                 return new NoDoubleSquareBracketCloseException(token,
38:                                 de.fhdw.wtf.common.constants.parser.ExceptionConstants.NO_DOUBLE_SQUARE_BRACKET_CLOSE_EXCEPTION_MESSAGE);
39:         }
40: }