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