Exception: ConvenientService::Support::DependencyContainer::Exceptions::InvalidScope Private

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/support/dependency_container/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(scope:) ⇒ void

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.

This method returns an undefined value.

Parameters:

  • scope (Object)

Since:

  • 1.0.0



17
18
19
20
21
22
23
24
25
# File 'lib/convenient_service/support/dependency_container/exceptions.rb', line 17

def initialize_with_kwargs(scope:)
  message = <<~TEXT
    Scope `#{scope.inspect}` is NOT valid.

    Valid options are #{printable_valid_scopes}.
  TEXT

  initialize(message)
end