Exception: Eco::API::UseCases::AmbiguousCaseReference

Inherits:
StandardError
  • Object
show all
Defined in:
lib/eco/api/usecases.rb

Instance Method Summary collapse

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