for consistency; it's awkward to see it as a struct while LexerError as a .class. The choice is basically a matter of taste, but I personally think it's better to be defined as a class as its base is defined as a class, and these exception structs are not just a trivial set of values.
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|