Exception: Eco::API::UseCases::AmbiguousCaseReference
- Defined in:
- lib/eco/api/usecases.rb
Instance Method Summary collapse
-
#initialize(msg = nil, case_name: nil) ⇒ AmbiguousCaseReference
constructor
A new instance of AmbiguousCaseReference.
Constructor Details
#initialize(msg = nil, case_name: nil) ⇒ AmbiguousCaseReference
Returns a new instance of AmbiguousCaseReference.
15 16 17 18 19 |
# File 'lib/eco/api/usecases.rb', line 15 def initialize(msg = nil, case_name: nil) msg ||= "You must specify type when there are multiple cases with same name" msg += ". Case name '#{case_name}'" if case_name super(msg) end |