Exception: Rabbit::ImageFileDoesNotExistError

Inherits:
ImageLoadError show all
Defined in:
lib/rabbit/error.rb

Constant Summary

Constants included from GetText

GetText::DOMAIN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GetText

included

Constructor Details

#initialize(filename) ⇒ ImageFileDoesNotExistError

Returns a new instance of ImageFileDoesNotExistError.



27
28
29
30
# File 'lib/rabbit/error.rb', line 27

def initialize(filename)
  @filename = filename
  super(_("no such file: %s") % filename)
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



26
27
28
# File 'lib/rabbit/error.rb', line 26

def filename
  @filename
end