|
9 | 9 |
|
10 | 10 | namespace cucumber_cpp::library::cucumber_expression |
11 | 11 | { |
12 | | - struct Error : std::runtime_error |
| 12 | + struct Error |
| 13 | + : std::runtime_error |
13 | 14 | { |
14 | 15 | Error(std::size_t column, std::string_view expression, std::string_view pointer, std::string_view problem, std::string_view solution); |
15 | 16 | }; |
16 | 17 |
|
17 | | - struct CantEscape : Error |
18 | | - |
| 18 | + struct CantEscape |
| 19 | + : Error |
19 | 20 | { |
20 | 21 | CantEscape(std::string_view expression, std::size_t column); |
21 | 22 | }; |
22 | 23 |
|
23 | | - struct TheEndOfLineCannotBeEscaped : Error |
| 24 | + struct TheEndOfLineCannotBeEscaped |
| 25 | + : Error |
24 | 26 | { |
25 | 27 | explicit TheEndOfLineCannotBeEscaped(std::string_view expression); |
26 | 28 | }; |
27 | 29 |
|
28 | | - struct AlternationNotAllowedInOptional : Error |
| 30 | + struct AlternationNotAllowedInOptional |
| 31 | + : Error |
29 | 32 | { |
30 | 33 | AlternationNotAllowedInOptional(std::string_view expression, const Token& token); |
31 | 34 | }; |
32 | 35 |
|
33 | | - struct InvalidParameterTypeNameInNode : Error |
| 36 | + struct InvalidParameterTypeNameInNode |
| 37 | + : Error |
34 | 38 | { |
35 | 39 | InvalidParameterTypeNameInNode(std::string_view expression, const Token& token); |
36 | 40 | }; |
37 | 41 |
|
38 | | - struct MissingEndToken : Error |
| 42 | + struct MissingEndToken |
| 43 | + : Error |
39 | 44 | { |
40 | 45 | MissingEndToken(std::string_view expression, TokenType beginToken, TokenType endToken, const Token& token); |
41 | 46 | }; |
42 | 47 |
|
43 | | - struct NoEligibleParsers : std::runtime_error |
| 48 | + struct NoEligibleParsers |
| 49 | + : std::runtime_error |
44 | 50 | { |
45 | 51 | explicit NoEligibleParsers(std::span<const Token> tokens); |
46 | 52 | }; |
47 | 53 |
|
48 | | - struct CucumberExpressionError : std::runtime_error |
| 54 | + struct CucumberExpressionError |
| 55 | + : std::runtime_error |
49 | 56 | { |
50 | 57 | using std::runtime_error::runtime_error; |
51 | 58 | }; |
52 | 59 |
|
53 | | - struct OptionalMayNotBeEmpty : Error |
| 60 | + struct OptionalMayNotBeEmpty |
| 61 | + : Error |
54 | 62 | { |
55 | 63 | OptionalMayNotBeEmpty(const Node& node, std::string_view expression); |
56 | 64 | }; |
57 | 65 |
|
58 | | - struct ParameterIsNotAllowedInOptional : Error |
| 66 | + struct ParameterIsNotAllowedInOptional |
| 67 | + : Error |
59 | 68 | { |
60 | 69 | ParameterIsNotAllowedInOptional(const Node& node, std::string_view expression); |
61 | 70 | }; |
62 | 71 |
|
63 | | - struct OptionalIsNotAllowedInOptional : Error |
| 72 | + struct OptionalIsNotAllowedInOptional |
| 73 | + : Error |
64 | 74 | { |
65 | 75 | OptionalIsNotAllowedInOptional(const Node& node, std::string_view expression); |
66 | 76 | }; |
67 | 77 |
|
68 | | - struct AlternativeMayNotExclusivelyContainOptionals : Error |
| 78 | + struct AlternativeMayNotExclusivelyContainOptionals |
| 79 | + : Error |
69 | 80 | { |
70 | 81 | AlternativeMayNotExclusivelyContainOptionals(const Node& node, std::string_view expression); |
71 | 82 | }; |
72 | 83 |
|
73 | | - struct AlternativeMayNotBeEmpty : Error |
| 84 | + struct AlternativeMayNotBeEmpty |
| 85 | + : Error |
74 | 86 | { |
75 | 87 | AlternativeMayNotBeEmpty(const Node& node, std::string_view expression); |
76 | 88 | }; |
77 | 89 |
|
78 | | - struct UndefinedParameterTypeError : Error |
| 90 | + struct UndefinedParameterTypeError |
| 91 | + : Error |
79 | 92 | { |
80 | 93 | UndefinedParameterTypeError(const Node& node, std::string_view expression, std::string_view undefinedParameterName); |
81 | 94 | }; |
82 | 95 |
|
83 | | - struct InvalidTokenType : std::logic_error |
| 96 | + struct InvalidTokenType |
| 97 | + : std::logic_error |
84 | 98 | { |
85 | 99 | using std::logic_error::logic_error; |
86 | 100 | }; |
87 | 101 |
|
88 | | - struct InvalidNodeType : std::logic_error |
| 102 | + struct InvalidNodeType |
| 103 | + : std::logic_error |
89 | 104 | { |
90 | 105 | using std::logic_error::logic_error; |
91 | 106 | }; |
|
0 commit comments