Skip to content

add "error kind" predicates on jiff::Error #418

@jessekrubin

Description

@jessekrubin

As discussed here adding some minimal sort of error kind api would be quite nice... that said, I imagine it could be a much larger job than I expect it to be.

preface: for anyone reading this, I have been working on creating jiff-python bindings for some time now, and have gone to pretty great lengths to avoid panics and always raise some sort of python error (bc at the end of the day my project is a python library).

In an ideal world, an error kind api would allow me to easily determine if I should throw:

  • OverflowError
  • TypeError (eg: you give a rounding/difference method an invalid unit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions