Exception: Compote::ServiceNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/compote/error.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(service:, config:) ⇒ ServiceNotFoundError

Returns a new instance of ServiceNotFoundError.



102
103
104
105
106
107
108
109
110
111
112
# File 'lib/compote/error.rb', line 102

def initialize ( service:, config: )

  @service = service

  @config = config

  message = "Error extending service: Service \"#{ service }\" not found in config \"#{ config.file_name }\"."

  super message

end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



99
100
101
# File 'lib/compote/error.rb', line 99

def config
  @config
end

#serviceObject (readonly)

Returns the value of attribute service.



99
100
101
# File 'lib/compote/error.rb', line 99

def service
  @service
end