Exception: Zip::EntrySizeError
- 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
-
#entry ⇒ Object
readonly
The entry that has caused this error.
Instance Method Summary collapse
-
#initialize(entry) ⇒ EntrySizeError
constructor
Create a new EntrySizeError with the specified entry.
-
#message ⇒ Object
The message returned by this error.
Constructor Details
#initialize(entry) ⇒ EntrySizeError
Create a new EntrySizeError with the specified entry.
101 102 103 104 |
# File 'lib/zip/errors.rb', line 101 def initialize(entry) super() @entry = entry end |
Instance Attribute Details
#entry ⇒ Object (readonly)
The entry that has caused this error.
98 99 100 |
# File 'lib/zip/errors.rb', line 98 def entry @entry end |
Instance Method Details
#message ⇒ Object
The message returned by this error.
107 108 109 |
# File 'lib/zip/errors.rb', line 107 def "Entry '#{@entry.name}' should be #{@entry.size}B, but is larger when inflated." end |