class Zip::DestinationExistsError

Error raised when trying to extract an archive entry over an existing file.

Public Class Methods

new(destination) click to toggle source

Create a new DestinationExistsError with the clashing destination.

Calls superclass method
# File lib/zip/errors.rb, line 48
def initialize(destination)
  super()
  @destination = destination
end

Public Instance Methods

message() click to toggle source

The message returned by this error.

# File lib/zip/errors.rb, line 54
def message
  "Cannot create file or directory '#{@destination}'. " \
    'A file already exists with that name.'
end