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

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(service:, status:) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0



14
15
16
17
18
19
20
21
22
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/exceptions.rb', line 14

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