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.



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

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.



35
36
37
# File 'lib/remove_bg/error.rb', line 35

def file_path
  @file_path
end