Wrap calls to the underlying Java producer with Ruby-based exceptions

Fixes #58