Exception: Eco::API::UseCases::BaseCase::Model::UnsupportedModel

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/eco/api/usecases/base_case/model.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, model:, models:) ⇒ UnsupportedModel

Returns a new instance of UnsupportedModel.



10
11
12
13
14
# File 'lib/eco/api/usecases/base_case/model.rb', line 10

def initialize(msg = nil, model:, models:)
  msg ||= "Unsupported model. "
  msg  << " Given model '#{model}'. Valid models: #{models}"
  super(msg)
end