Exception: Bibliothecary::FileParsingError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bibliothecary/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, filename) ⇒ FileParsingError

Returns a new instance of FileParsingError.



12
13
14
15
16
# File 'lib/bibliothecary/exceptions.rb', line 12

def initialize(msg, filename)
  @filename = filename
  msg = "#{filename}: #{msg}" unless msg.include?(filename)
  super("#{msg}")
end

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



11
12
13
# File 'lib/bibliothecary/exceptions.rb', line 11

def filename
  @filename
end