never raise Exception(...), introduce rdflib exception hierarchy · Issue #515 · RDFLib/rdflib (original) (raw)

In a lot of places we raise very broad exceptions. This is actually pretty bad style as the only thing you can do when handling such an exception is to do a catch all and then parse the message.

This is a reminder to clean up this mess and introduce an rdflib exception hierarchy and raise these exceptions.