Closed
Description
When creating a branch, there are multiple error cases that are interesting:
- Branch already exists
- Branch name was invalid
Currently, reference_create
maps both of these errors to ValueError
. The message is different, but distinguishing based on the message is fragile.
What do you think about introducing two new exceptions types (subclasses of ValueError
for backward compatibility) that allow callers to distinguish the errors?
I'm happy to raise a PR if that sounds good!
Metadata
Metadata
Assignees
Labels
No labels