google / compare-codecs

Apache License 2.0
49 stars 23 forks source link

Change "raise encoder.Error" into more specific error classes. #84

Open alvestrand opened 7 years ago

alvestrand commented 7 years ago

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.