Exception: RemoveBg::FileError

Inherits:
Error
  • Object
show all
Defined in:
lib/remove_bg/error.rb

Direct Known Subclasses

FileMissingError, FileOverwriteError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, file_path) ⇒ FileError

Returns a new instance of FileError.



39
40
41
42
# File 'lib/remove_bg/error.rb', line 39

def initialize(message, file_path)
  @file_path = file_path
  super(message)
end

Instance Attribute Details

#file_pathObject (readonly)

Returns the value of attribute file_path.



37
38
39
# File 'lib/remove_bg/error.rb', line 37

def file_path
  @file_path
end