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.
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
#message ⇒ Object
492 493 494 495 |
# File 'lib/mb/errors.rb', line 492 def msg = "Both component: #{@component} and service name: #{@service_name} are required." msg << "\nFormat should be in a dotted form - COMPONENT.SERVICE" end |