Support for the Ruby 2.2 series has ended. See here for reference.
StandardError
The superclass for all exceptions raised by Ruby/zlib.
The following exceptions are defined as subclasses of Zlib::Error. These exceptions are raised when zlib library functions return with an error status.