Exception: BeerList::NotAListError

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

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ NotAListError

Returns a new instance of NotAListError.



18
19
20
21
# File 'lib/beer_list/exceptions.rb', line 18

def initialize(msg=nil)
  msg ||= "That object was not a BeerList::List"
  super msg
end