_brotlimodule.cc also exports a custom exception, simply called error:
https://github.com/google/brotli/blob/master/python/brotlimodule.cc#L289
it would be nice if brotlipy did the same (I need catch brotli.error in my test suite).
Thanks!
BTW: brotlipy is great!