Skip to content

Commit a002e68

Browse files
committed
Rename ParsingError to ParseError
1 parent 61b9b7c commit a002e68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cratedb_sqlparse_js/parser/parser.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ SqlBaseLexer.prototype.BEGIN_DOLLAR_QUOTED_STRING_action = BEGIN_DOLLAR_QUOTED_S
2626
SqlBaseLexer.prototype.END_DOLLAR_QUOTED_STRING_action = END_DOLLAR_QUOTED_STRING_action;
2727
SqlBaseLexer.prototype.END_DOLLAR_QUOTED_STRING_sempred = END_DOLLAR_QUOTED_STRING_sempred;
2828

29-
export class ParsingError extends Error {
29+
export class ParseError extends Error {
30+
name = 'ParseError'
3031
}
3132

3233
class CaseInsensitiveStream extends InputStream {
@@ -41,7 +42,7 @@ class CaseInsensitiveStream extends InputStream {
4142

4243
class ExceptionErrorListener extends ErrorListener {
4344
syntaxError(recognizer, offendingSymbol, line, column, msg, e) {
44-
throw new ParsingError(`line${line}:${column} ${msg}`);
45+
throw new ParseError(`line${line}:${column} ${msg}`);
4546
}
4647
}
4748

0 commit comments

Comments
 (0)