Exception: Zip::EntryExistsError

Inherits:
Error
  • Object
show all
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

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

#messageObject



59
60
61
# File 'lib/zip/errors.rb', line 59

def message
  "'#{@source}' failed. Entry #{@name} already exists."
end