blob: 19b3cb10a500ab8cf6a2cbccbb878ac8c573aead (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using Mammoth.Couscous.java.lang;
namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.styles.parsing {
internal class LineParseException : RuntimeException {
internal static LineParseException lineParseException<T>(Token<T> token, string message) {
return new LineParseException(token.getCharacterIndex(), message);
}
private readonly int _characterIndex;
internal LineParseException(int characterIndex, string message) : base(message) {
_characterIndex = characterIndex;
}
internal int getCharacterIndex() {
return _characterIndex;
}
}
}
|