Exception: Rabbit::ImageFileDoesNotExistError
- Inherits:
-
ImageLoadError
- Object
- StandardError
- Error
- ImageLoadError
- Rabbit::ImageFileDoesNotExistError
- Defined in:
- lib/rabbit/error.rb
Constant Summary
Constants included from GetText
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(filename) ⇒ ImageFileDoesNotExistError
constructor
A new instance of ImageFileDoesNotExistError.
Methods included from GetText
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
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
26 27 28 |
# File 'lib/rabbit/error.rb', line 26 def filename @filename end |