Exception: RemoveBg::FileOverwriteError

Inherits:
FileError show all
Defined in:
lib/remove_bg/error.rb

Instance Attribute Summary

Attributes inherited from FileError

#file_path

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ FileOverwriteError

Returns a new instance of FileOverwriteError.



52
53
54
# File 'lib/remove_bg/error.rb', line 52

def initialize(file_path)
  super("The file already exists: '#{file_path}' (use #save! or #save_zip! to overwrite existing files)", file_path)
end