Skip to content

Export errors for easier programmatic use #1140

@thanethomson

Description

@thanethomson

Comet currently doesn't export many of its errors, which hinders programmatic use (i.e. by consensus engine developers). The only alternative for them is to detect specific errors by their string representations, which is prone to breakage even in patch releases of our software.

We should, package by package, ensure that all possible errors returned by publicly exported methods are defined programmatically (example) and publicly exported too.

Per package (check it off if its errors are already all publicly exported or this is not applicable):

Once the packages are implemented:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions