Exception: RestClient::ServerBrokeConnection

Inherits:
Exception
  • Object
show all
Defined in:
lib/restclient/exceptions.rb

Overview

The server broke the connection prior to the request completing. Usually this means it crashed, or sometimes that your network connection was severed before it could complete.

Instance Attribute Summary

Attributes inherited from Exception

#message, #original_exception, #response

Instance Method Summary collapse

Methods inherited from Exception

#default_message, #http_body, #http_code, #http_headers, #to_s

Constructor Details

#initialize(message = 'Server broke connection') ⇒ ServerBrokeConnection

Returns a new instance of ServerBrokeConnection.


232
233
234
235
# File 'lib/restclient/exceptions.rb', line 232

def initialize(message = 'Server broke connection')
  super nil, nil
  self.message = message
end