Skip to content

Use dedicated exception classes over AirflowException for AGENTS.md#63495

Merged
jason810496 merged 3 commits intoapache:mainfrom
jason810496:agents/exception-class-standard
Mar 14, 2026
Merged

Use dedicated exception classes over AirflowException for AGENTS.md#63495
jason810496 merged 3 commits intoapache:mainfrom
jason810496:agents/exception-class-standard

Conversation

@jason810496
Copy link
Member

Why

As discussed in dev list long time ago, it would be better to use dedicated exception classes instead of too broad AirflowException for the new exceptions.

I catch several similar new exception usage manually during review (e.g. one of the recent one #61550 (comment)), so adding a new rules in AGENTS.md could point out automatically before maintainer review.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below) Cursor Coding Agent

…ption

Co-authored-by: Jason(Zhe-You) Liu <jason810496@users.noreply.github.com>
@choo121600
Copy link
Member

Cool :)

@Dev-iL
Copy link
Collaborator

Dev-iL commented Mar 13, 2026

Perhaps we should finally do something about #46932

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small nit.

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@jason810496 jason810496 merged commit 6a616c5 into apache:main Mar 14, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants