Exception: StubRequests::InvalidUri

Inherits:
Error show all
Defined in:
lib/stub_requests/stub_requests.rb

Overview

InvalidUri is raised when a URI is invalid

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ InvalidUri

Returns a new instance of InvalidUri

Since:

  • 0.1.0



56
57
58
# File 'lib/stub_requests/stub_requests.rb', line 56

def initialize(uri)
  super("'#{uri}' is not a valid URI.")
end