fossi-foundation/ciel

Introduce ciel-specific Python exceptions

开放

#131 创建于 2026年6月15日

 (2 条评论) (0 个反应) (0 位负责人)Python (11 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (56 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南