From 918abde014f9e5c75dfbe21110c379f7f70435c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 12 Feb 2023 11:06:28 +0100 Subject: Merging upstream version 11.0.1. Signed-off-by: Daniel Baumann --- sqlglot/errors.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'sqlglot/errors.py') 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): -- cgit v1.2.3