class Zip::DecompressionError

Error raised if there is a problem while decompressing an archive entry.

Attributes

zlib_error[R]

The error from the underlying Zlib library that caused this error.

Public Class Methods

new(zlib_error) click to toggle source

Create a new DecompressionError with the specified underlying Zlib error.

Calls superclass method
# File lib/zip/errors.rb, line 33
def initialize(zlib_error)
  super()
  @zlib_error = zlib_error
end

Public Instance Methods

message() click to toggle source

The message returned by this error.

# File lib/zip/errors.rb, line 39
def message
  "Zlib error ('#{@zlib_error.message}') while inflating."
end