Exception: BeerList::NoEstablishmentsError
- Inherits:
-
StandardError
- Object
- StandardError
- BeerList::NoEstablishmentsError
- Defined in:
- lib/beer_list/exceptions.rb
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ NoEstablishmentsError
constructor
A new instance of NoEstablishmentsError.
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 |