Exception: StubRequests::ServiceHaveEndpoints

Inherits:
StandardError
  • Object
show all
Defined in:
lib/stub_requests/stub_requests.rb

Overview

ServiceHaveEndpoints is raised to prevent overwriting a registered service's endpoints

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initialize(service) ⇒ ServiceHaveEndpoints

Returns a new instance of ServiceHaveEndpoints

Since:

  • 0.1.0



19
20
21
# File 'lib/stub_requests/stub_requests.rb', line 19

def initialize(service)
  super("Service with id #{service.id} have already been registered. #{service}")
end