Exception: BadRequest
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BadRequest
- Defined in:
- lib/urlshort.rb
Instance Method Summary collapse
-
#initialize(msg) ⇒ BadRequest
constructor
A new instance of BadRequest.
Constructor Details
#initialize(msg) ⇒ BadRequest
Returns a new instance of BadRequest.
10 11 12 13 |
# File 'lib/urlshort.rb', line 10 def initialize(msg) puts "There was a problem with the original long URL provided." puts msg end |