class Zip::EntrySizeError

Error raised if an entry is larger on extraction than it is advertised to be.

Attributes

entry[R]

The entry that has caused this error.

Public Class Methods

new(entry) click to toggle source

Create a new EntrySizeError with the specified entry.

Calls superclass method
# File lib/zip/errors.rb, line 101
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 107
def message
  "Entry '#{@entry.name}' should be #{@entry.size}B, but is larger when inflated."
end