Exception: NotAcceptable
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- NotAcceptable
- Defined in:
- lib/urlshort.rb
Instance Method Summary collapse
-
#initialize(msg) ⇒ NotAcceptable
constructor
A new instance of NotAcceptable.
Constructor Details
#initialize(msg) ⇒ NotAcceptable
Returns a new instance of NotAcceptable.
17 18 19 20 |
# File 'lib/urlshort.rb', line 17 def initialize(msg) puts "There was a problem with the short URL provided." puts msg end |