Exception: Fredo::NetConnectNotAllowedError
- Inherits:
-
StandardError
- Object
- StandardError
- Fredo::NetConnectNotAllowedError
- Defined in:
- lib/fredo.rb
Overview
This exception is raised if you set Fredo.allow_net_connect = false
and subsequently try to make a request to a URI you haven’t stubbed.
Instance Method Summary collapse
-
#initialize(uri) ⇒ NetConnectNotAllowedError
constructor
A new instance of NetConnectNotAllowedError.
Constructor Details
#initialize(uri) ⇒ NetConnectNotAllowedError
Returns a new instance of NetConnectNotAllowedError.
62 63 64 |
# File 'lib/fredo.rb', line 62 def initialize(uri) super "Connection to #{uri} is disabled" end |