Exception: ConvenientService::Service::Plugins::CanHaveFallbacks::Exceptions::FallbackResultIsNotOverridden

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_fallbacks/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(service:, status:) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/exceptions.rb', line 9

def initialize_with_kwargs(service:, status:)
  message = "    Fallback \#{status} result method (#fallback_\#{status}_result) of `\#{service.class}` is NOT overridden.\n\n    NOTE: Make sure overridden `fallback_\#{status}_result` returns `success` with reasonable \"null\" data.\n  TEXT\n\n  initialize(message)\nend\n"