Exception: Zip::DestinationExistsError
- Defined in:
- lib/zip/errors.rb
Overview
Error raised when trying to extract an archive entry over an existing file.
Instance Method Summary collapse
-
#initialize(destination) ⇒ DestinationExistsError
constructor
A new instance of DestinationExistsError.
- #message ⇒ Object
Constructor Details
#initialize(destination) ⇒ DestinationExistsError
Returns a new instance of DestinationExistsError.
39 40 41 42 |
# File 'lib/zip/errors.rb', line 39 def initialize(destination) super() @destination = destination end |
Instance Method Details
#message ⇒ Object
44 45 46 47 |
# File 'lib/zip/errors.rb', line 44 def "Cannot create file or directory '#{@destination}'. " \ 'A file already exists with that name.' end |