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