Exception: BadRequest

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/urlshort.rb

Instance Method Summary collapse

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