Exception: ConvenientService::Support::DependencyContainer::Exceptions::NotExportableModule

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

Overview

Since:

  • 0.3.0

Instance Method Summary collapse

Constructor Details

#initialize(mod:) ⇒ void

Parameters:

  • mod (Module)

Since:

  • 0.3.0



37
38
39
40
41
42
43
44
45
# File 'lib/convenient_service/support/dependency_container/exceptions.rb', line 37

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

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

  super(message)
end