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
The entry that has caused this error.
Instance Method Summary collapse
-
#initialize(entry) ⇒ StreamingError
constructor
Create a new StreamingError with the specified entry.
-
#message ⇒ Object
The message returned by this error.
Constructor Details
#initialize(entry) ⇒ StreamingError
Create a new StreamingError with the specified entry.
143 144 145 146 |
# File 'lib/zip/errors.rb', line 143 def initialize(entry) super() @entry = entry end |
Instance Attribute Details
#entry ⇒ Object (readonly)
The entry that has caused this error.
140 141 142 |
# File 'lib/zip/errors.rb', line 140 def entry @entry end |
Instance Method Details
#message ⇒ Object
The message returned by this error.
149 150 151 152 153 |
# File 'lib/zip/errors.rb', line 149 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 |