Exception: Zip::StreamingError

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

Overview

Error raised if there is not enough metadata for the entry to be streamed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry) ⇒ StreamingError

Returns a new instance of StreamingError.



107
108
109
110
# File 'lib/zip/errors.rb', line 107

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

Instance Attribute Details

#entryObject (readonly)

Returns the value of attribute entry.



105
106
107
# File 'lib/zip/errors.rb', line 105

def entry
  @entry
end

Instance Method Details

#messageObject



112
113
114
115
116
# File 'lib/zip/errors.rb', line 112

def message
  "The local header of this entry ('#{@entry.name}') does not contain " \
  'the correct metadata for `Zip::InputStream` to be able to ' \
  'uncompress it. Please use `Zip::File` instead of `Zip::InputStream`.'
end