Exception: ConvenientService::Support::Castable::Exceptions::CastIsNotOverridden

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/support/castable/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(klass:) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/convenient_service/support/castable/exceptions.rb', line 13

def initialize_with_kwargs(klass:)
  message = <<~TEXT
    Cast method (.cast) of `#{klass}` is NOT overridden.
  TEXT

  initialize(message)
end