diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-12 10:06:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-12 10:06:28 +0000 |
commit | 918abde014f9e5c75dfbe21110c379f7f70435c9 (patch) | |
tree | 3419a01e34958bffbd917fa9e600eda126ea3a87 /sqlglot/errors.py | |
parent | Releasing debian version 10.6.3-1. (diff) | |
download | sqlglot-918abde014f9e5c75dfbe21110c379f7f70435c9.tar.xz sqlglot-918abde014f9e5c75dfbe21110c379f7f70435c9.zip |
Merging upstream version 11.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/errors.py')
-rw-r--r-- | sqlglot/errors.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sqlglot/errors.py b/sqlglot/errors.py index b5ef5ad..300c215 100644 --- a/sqlglot/errors.py +++ b/sqlglot/errors.py @@ -7,10 +7,17 @@ from sqlglot.helper import AutoName class ErrorLevel(AutoName): - IGNORE = auto() # Ignore any parser errors - WARN = auto() # Log any parser errors with ERROR level - RAISE = auto() # Collect all parser errors and raise a single exception - IMMEDIATE = auto() # Immediately raise an exception on the first parser error + IGNORE = auto() + """Ignore all errors.""" + + WARN = auto() + """Log all errors.""" + + RAISE = auto() + """Collect all errors and raise a single exception.""" + + IMMEDIATE = auto() + """Immediately raise an exception on the first error found.""" class SqlglotError(Exception): |