Exception: BeerList::NoUrlError
- Inherits:
-
StandardError
- Object
- StandardError
- BeerList::NoUrlError
- Defined in:
- lib/beer_list/exceptions.rb
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ NoUrlError
constructor
A new instance of NoUrlError.
Constructor Details
#initialize(msg = nil) ⇒ NoUrlError
Returns a new instance of NoUrlError.
11 12 13 14 |
# File 'lib/beer_list/exceptions.rb', line 11 def initialize(msg=nil) msg ||= "No url was specified and no default_url exists" super msg end |