class Zip::StreamingError

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

Attributes

entry[R]

The entry that has caused this error.

Public Class Methods

new(entry) click to toggle source

Create a new StreamingError with the specified entry.

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

Public Instance Methods

message() click to toggle source

The message returned by this error.

# File lib/zip/errors.rb, line 149
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