Exception: Eco::API::UseCases::UnknownCase

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

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, case_name: nil, type: nil) ⇒ UnknownCase

Returns a new instance of UnknownCase.



6
7
8
9
10
11
# File 'lib/eco/api/usecases.rb', line 6

def initialize(msg = nil, case_name: nil, type: nil)
  msg ||= "Unknown case"
  msg += ". Case name '#{case_name}'" if case_name
  msg += ". Case type '#{type}'" if type
  super(msg)
end