Exception: BeerList::NoEstablishmentsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/beer_list/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ NoEstablishmentsError

Returns a new instance of NoEstablishmentsError.



4
5
6
7
# File 'lib/beer_list/exceptions.rb', line 4

def initialize(msg=nil)
  msg ||= "No establishments are registered"
  super msg
end