Change "raise encoder.Error" into more specific error classes.
alvestrand opened this issue · comments
From @pzembrod : The style guide recommendation is to use a module's Error class only as base class for the actual exceptions thrown, so that you can catch either all exceptions from that module (Error) or any specific exception in a targeted manner.