Exception: Zip::DecompressionError

Inherits:
Error
  • Object
show all
Defined in:
lib/zip/errors.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(zlib_error) ⇒ DecompressionError

Returns a new instance of DecompressionError.



26
27
28
29
# File 'lib/zip/errors.rb', line 26

def initialize(zlib_error)
  super()
  @zlib_error = zlib_error
end

Instance Attribute Details

#zlib_errorObject (readonly)

Returns the value of attribute zlib_error.



24
25
26
# File 'lib/zip/errors.rb', line 24

def zlib_error
  @zlib_error
end

Instance Method Details

#messageObject



31
32
33
# File 'lib/zip/errors.rb', line 31

def message
  "Zlib error ('#{@zlib_error.message}') while inflating."
end