class Zip::EntryExistsError
Error raised when trying to add an entry to an archive where the entry name already exists.
Public Class Methods
new(source, name)
click to toggle source
Create a new EntryExistsError with the specified source and name.
Calls superclass method
# File lib/zip/errors.rb, line 64 def initialize(source, name) super() @source = source @name = name end
Public Instance Methods
message()
click to toggle source
The message returned by this error.
# File lib/zip/errors.rb, line 71 def message "'#{@source}' failed. Entry #{@name} already exists." end