Exception: MotherBrain::InvalidDynamicService

Inherits:
MBError
  • Object
show all
Defined in:
lib/mb/errors.rb

Constant Summary

Constants inherited from MBError

MBError::DEFAULT_EXIT_CODE

Instance Method Summary collapse

Methods inherited from MBError

#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s

Constructor Details

#initialize(component, service_name) ⇒ InvalidDynamicService

Returns a new instance of InvalidDynamicService.



487
488
489
490
# File 'lib/mb/errors.rb', line 487

def initialize(component, service_name)
  @component = component
  @service_name = service_name
end

Instance Method Details

#messageObject



492
493
494
495
# File 'lib/mb/errors.rb', line 492

def message
  msg = "Both component: #{@component} and service name: #{@service_name} are required."
  msg << "\nFormat should be in a dotted form - COMPONENT.SERVICE"
end