Skip to content

Commit 39116a1

Browse files
Re order error classes
1 parent 84e36a5 commit 39116a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

detection_rules/esql_errors.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ def __init__(self, message: str, elastic_client: Elasticsearch) -> None:
3838
super().__init__(message)
3939

4040

41-
class EsqlSyntaxError(Exception):
42-
"""Error with ESQL syntax. Validated via Kibana until AST is available."""
41+
class EsqlSemanticError(Exception):
42+
"""Error with ESQL semantics. Validated via Kibana until AST is available."""
4343

4444
def __init__(self, message: str, elastic_client: Elasticsearch) -> None:
4545
cleanup_empty_indices(elastic_client)
4646
super().__init__(message)
4747

4848

49-
class EsqlSemanticError(Exception):
50-
"""Error with ESQL semantics. Validated via Kibana until AST is available."""
49+
class EsqlSyntaxError(Exception):
50+
"""Error with ESQL syntax. Validated via Kibana until AST is available."""
5151

5252
def __init__(self, message: str, elastic_client: Elasticsearch) -> None:
5353
cleanup_empty_indices(elastic_client)

0 commit comments

Comments
 (0)