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
31
# File 'lib/rabbit/error.rb', line 27

def initialize(filename)
  @filename = filename
  utf8_filename = GLib.filename_to_utf8(filename)
  super(_("no such file: %s") % utf8_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