omkar-foss commented on code in PR #65423:
URL: https://github.com/apache/airflow/pull/65423#discussion_r3161928664
##########
airflow-core/src/airflow/exceptions.py:
##########
@@ -45,6 +45,23 @@
class AirflowException(Exception): # type: ignore[no-redef]
"""Base exception for Airflow errors."""
+ class AirflowEnumeratedException(Exception):
Review Comment:
Removed the enumerated base class and have added an error code mixin that
can be used to raise exceptions with error_code. Have kept this mixin such that
it doesn't alter the exception's data model and only includes the error code in
its string representations, so when the exception in printed in Airflow logs
the user will be able to see it and use for reporting etc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]