Exception: Morpheus::NetConnectNotAllowedError

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

Overview

Occurs when a request from a remote host is made while Morpheus::Configuration.allow_net_connect is set to false.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request = nil) ⇒ NetConnectNotAllowedError

Returns a new instance of NetConnectNotAllowedError.



9
10
11
# File 'lib/morpheus/errors.rb', line 9

def initialize(request = nil)
  self.request= request
end

Instance Attribute Details

#requestObject

Returns the value of attribute request.



8
9
10
# File 'lib/morpheus/errors.rb', line 8

def request
  @request
end