Exception: MotherBrain::InvalidDynamicService
- Defined in:
- lib/mb/errors.rb
Constant Summary
Constants inherited from MBError
Instance Method Summary collapse
-
#initialize(component, service_name) ⇒ InvalidDynamicService
constructor
A new instance of InvalidDynamicService.
- #message ⇒ Object
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.
470 471 472 473 |
# File 'lib/mb/errors.rb', line 470 def initialize(component, service_name) @component = component @service_name = service_name end |
Instance Method Details
#message ⇒ Object
475 476 477 478 |
# File 'lib/mb/errors.rb', line 475 def msg = "Both component: #{@component} and service name: #{@service_name} are required." msg << "\nFormat should be in a dotted form - COMPONENT.SERVICE" end |