Exception: Restify::NetworkError
- Inherits:
-
StandardError
- Object
- StandardError
- Restify::NetworkError
- Defined in:
- lib/restify/error.rb
Overview
A NetworkError is raised on unusual network exceptions such as unresolvable hosts or disconnects.
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(request, message) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(request, message) ⇒ NetworkError
Returns a new instance of NetworkError.
10 11 12 13 |
# File 'lib/restify/error.rb', line 10 def initialize(request, ) @request = request super("[#{request.uri}] #{}") end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
8 9 10 |
# File 'lib/restify/error.rb', line 8 def request @request end |