Exception: ArTTY::Error::ImageNotFound
- Inherits:
-
ArTTY::Error
- Object
- RuntimeError
- ArTTY::Error
- ArTTY::Error::ImageNotFound
- Defined in:
- lib/arTTY/error/image_not_found.rb
Instance Method Summary collapse
-
#initialize(image = nil) ⇒ ImageNotFound
constructor
A new instance of ImageNotFound.
Constructor Details
#initialize(image = nil) ⇒ ImageNotFound
Returns a new instance of ImageNotFound.
2 3 4 5 |
# File 'lib/arTTY/error/image_not_found.rb', line 2 def initialize(image = nil) super("Image not found: #{image}") if (image && !image.empty?) super("Image not found") if (image.nil?) end |