Yusin0903 commented on code in PR #49164:
URL: https://github.com/apache/airflow/pull/49164#discussion_r2291552314
##########
airflow-core/src/airflow/api_fastapi/common/exceptions.py:
##########
@@ -103,6 +104,18 @@ def _is_dialect_matched(self, exc: IntegrityError) -> bool:
return False
-DatabaseErrorHandlers = [
- _UniqueConstraintErrorHandler(),
-]
+class DagErrorHandler(BaseErrorHandler[DeserializationError]):
+ """Handler for Dag related errors."""
+
+ def __init__(self):
+ super().__init__(DeserializationError)
Review Comment:
Hi, thanks for your feedback. I realize the __init__ method here may not be
strictly necessary at the moment. I added it by referring to another handler,
thinking it might be useful in other extensions. If you think it’s not needed,
I’m happy to remove it.
--
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]