enhancementgood first issuehousekeeping
仓库指标
- 星标
- (1,158 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
SonarCloud complains about our exception throwing, and I think it makes sense:
If you throw a general exception type, such as std::exception, std::logic_error or std::runtime_error, it forces consumers to catch all exceptions, including unknown exceptions they don’t necessarily know how to handle.
Instead, either throw a subtype that already exists ( for example in ), or create your own type that derives from a standard one.