Exception: Zip::EntrySizeError

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry) ⇒ EntrySizeError

Returns a new instance of EntrySizeError.



85
86
87
88
# File 'lib/zip/errors.rb', line 85

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

Instance Attribute Details

#entryObject (readonly)

Returns the value of attribute entry.



83
84
85
# File 'lib/zip/errors.rb', line 83

def entry
  @entry
end

Instance Method Details

#messageObject



90
91
92
# File 'lib/zip/errors.rb', line 90

def message
  "Entry '#{@entry.name}' should be #{@entry.size}B, but is larger when inflated."
end