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.

貢獻者指南