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.



50
51
52
# File 'lib/remove_bg/error.rb', line 50

def initialize(file_path)
  super("The file already exists: '#{file_path}' (specify #save(overwrite: true) to ignore)", file_path)
end