fossi-foundation/ciel

Introduce ciel-specific Python exceptions

オープン

#131 opened on 2026/06/15

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Python (11 件のフォーク)auto 404
enhancementgood first issue

Repository metrics

Stars
 (56 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Description

Ciel currently raises normal ValueErrors, RuntimeErrors, etc. This is theoretically fine. but practically that means we have to capture all exceptions for purposes of presenting them to the users, which can include exceptions in other libraries and/or the Python standard library, and not show a traceback. This is a pretty poor user/developer experience.

Proposal

New exception classes should inherit from ValueErrors/RuntimeErrors to match the declared APIs, but ciel should raise exclusively these classes.

コントリビューターガイド