Exception: Zip::DecompressionError
- Defined in:
- lib/zip/errors.rb
Overview
Error raised if there is a problem while decompressing an archive entry.
Instance Attribute Summary collapse
-
#zlib_error ⇒ Object
readonly
Returns the value of attribute zlib_error.
Instance Method Summary collapse
-
#initialize(zlib_error) ⇒ DecompressionError
constructor
A new instance of DecompressionError.
- #message ⇒ Object
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_error ⇒ Object (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
#message ⇒ Object
31 32 33 |
# File 'lib/zip/errors.rb', line 31 def "Zlib error ('#{@zlib_error.}') while inflating." end |