Exception: ServiceUnavailable
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ServiceUnavailable
- Defined in:
- lib/urlshort.rb
Instance Method Summary collapse
-
#initialize(msg) ⇒ ServiceUnavailable
constructor
A new instance of ServiceUnavailable.
Constructor Details
#initialize(msg) ⇒ ServiceUnavailable
Returns a new instance of ServiceUnavailable.
31 32 33 34 |
# File 'lib/urlshort.rb', line 31 def initialize(msg) puts "This service is temporarily unavailable." puts msg end |