Skip to content

Review Exception Types #10

Closed
Closed
@Byron

Description

@Byron

Currently, whenever something git-specific happens, git-python will throw a more or less generic Python exception, such as ValueError or TypeError, including a very git specific message though.

Client Code is less readable that way, as it will handle these general exceptions very specifically although this is not indicated by the exception type.

Review the all raise statements and introduce custom Exception types which are derived from the type you currently see. This way client code will be more readable without breaking existing code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions