Exception: ConvenientService::Support::DependencyContainer::Exceptions::NotExportableModule 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(mod:) ⇒ 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:

  • mod (Module)

Since:

  • 1.0.0



42
43
44
45
46
47
48
49
50
# File 'lib/convenient_service/support/dependency_container/exceptions.rb', line 42

def initialize_with_kwargs(mod:)
  message = <<~TEXT
    Module `#{mod}` can NOT export methods.

    Did you forget to include `ConvenientService::DependencyContainer::Export` into it?
  TEXT

  initialize(message)
end