Class: ZuoraAPI::Exceptions::ZuoraAPIReadTimeout

Inherits:
Timeout::Error
  • Object
show all
Defined in:
lib/zuora_api/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, response = nil, request = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIReadTimeout

Returns a new instance of ZuoraAPIReadTimeout.



246
247
248
249
250
251
252
# File 'lib/zuora_api/exceptions.rb', line 246

def initialize(message = nil, response = nil, request = nil, errors = [], successes = [], *args)
  @code = response.class.to_s == "HTTParty::Response" ? response.code : nil
  @message = message
  @response = response
  @request = request
  @default_message = "Authentication type is not supported by this Login"
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



243
244
245
# File 'lib/zuora_api/exceptions.rb', line 243

def code
  @code
end

#default_message=(value) ⇒ Object (writeonly)

Sets the attribute default_message

Parameters:

  • value

    the value to set the attribute default_message to.



244
245
246
# File 'lib/zuora_api/exceptions.rb', line 244

def default_message=(value)
  @default_message = value
end

#requestObject (readonly)

Returns the value of attribute request.



243
244
245
# File 'lib/zuora_api/exceptions.rb', line 243

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



243
244
245
# File 'lib/zuora_api/exceptions.rb', line 243

def response
  @response
end

Instance Method Details

#to_sObject



254
255
256
# File 'lib/zuora_api/exceptions.rb', line 254

def to_s
  @message || @default_message
end