Exception: Eco::API::UseCases::BaseCase::InvalidType
- Inherits:
-
StandardError
- Object
- StandardError
- Eco::API::UseCases::BaseCase::InvalidType
- Defined in:
- lib/eco/api/usecases/base_case.rb
Instance Method Summary collapse
-
#initialize(msg = nil, type:, types:) ⇒ InvalidType
constructor
A new instance of InvalidType.
Constructor Details
#initialize(msg = nil, type:, types:) ⇒ InvalidType
Returns a new instance of InvalidType.
8 9 10 11 12 |
# File 'lib/eco/api/usecases/base_case.rb', line 8 def initialize(msg = nil, type:, types:) msg ||= "Invalid type." msg = "Given type '#{type}'. Valid types: #{types}" super(msg) end |