Exception: Eco::API::UseCases::UnkownCase
- Defined in:
- lib/eco/api/usecases.rb
Instance Method Summary collapse
-
#initialize(msg = nil, case_name: nil, type: nil) ⇒ UnkownCase
constructor
A new instance of UnkownCase.
Methods inherited from Exception
Constructor Details
#initialize(msg = nil, case_name: nil, type: nil) ⇒ UnkownCase
Returns a new instance of UnkownCase.
6 7 8 9 10 11 |
# File 'lib/eco/api/usecases.rb', line 6 def initialize(msg = nil, case_name: nil, type: nil) msg ||= "Unkown case" msg += ". Case name '#{case_name}'" if case_name msg += ". Case type '#{type}'" if type super(msg) end |