Exception: Zip::EntryExistsError
- Defined in:
- lib/zip/errors.rb
Overview
Error raised when trying to add an entry to an archive where the entry name already exists.
Instance Method Summary collapse
-
#initialize(source, name) ⇒ EntryExistsError
constructor
A new instance of EntryExistsError.
- #message ⇒ Object
Constructor Details
#initialize(source, name) ⇒ EntryExistsError
Returns a new instance of EntryExistsError.
53 54 55 56 57 |
# File 'lib/zip/errors.rb', line 53 def initialize(source, name) super() @source = source @name = name end |
Instance Method Details
#message ⇒ Object
59 60 61 |
# File 'lib/zip/errors.rb', line 59 def "'#{@source}' failed. Entry #{@name} already exists." end |