Exception: Eco::API::UseCases::UnknownCase
- Defined in:
- lib/eco/api/usecases.rb
Instance Method Summary collapse
-
#initialize(msg = nil, case_name: nil, type: nil) ⇒ UnknownCase
constructor
A new instance of UnknownCase.
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 |