Exception: Zip::StreamingError
- 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
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
Instance Method Summary collapse
-
#initialize(entry) ⇒ StreamingError
constructor
A new instance of StreamingError.
- #message ⇒ Object
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
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
105 106 107 |
# File 'lib/zip/errors.rb', line 105 def entry @entry end |
Instance Method Details
#message ⇒ Object
112 113 114 115 116 |
# File 'lib/zip/errors.rb', line 112 def "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 |