Exception: TsJsonApi::ServerBrokeConnection

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

Overview

Server connection was severed

Instance Attribute Summary

Attributes inherited from Exception

#http_code, #message, #rest_client_exception

Instance Method Summary collapse

Methods inherited from Exception

#to_s

Constructor Details

#initialize(*args) ⇒ ServerBrokeConnection

Returns a new instance of ServerBrokeConnection.



49
50
51
52
53
54
# File 'lib/ts_json_api/exceptions.rb', line 49

def initialize(*args)
	options = args.extract_options!
	options.merge! http_code: 0
	super options
	self.message = 'Connection to server was severed'
end