Exception: MultipleServicesFoundError
- Inherits:
-
IllegalStateError
- Object
- StandardError
- IllegalStateError
- MultipleServicesFoundError
- Defined in:
- lib/train-habitat/illegal_state_error.rb
Instance Method Summary collapse
-
#initialize(origin, name) ⇒ MultipleServicesFoundError
constructor
A new instance of MultipleServicesFoundError.
Constructor Details
#initialize(origin, name) ⇒ MultipleServicesFoundError
Returns a new instance of MultipleServicesFoundError.
16 17 18 |
# File 'lib/train-habitat/illegal_state_error.rb', line 16 def initialize(origin, name) super("Expected one service '#{origin}/#{name}', but found multiple.") end |