Class: ZuoraAPI::Exceptions::ZuoraAPIReadTimeout
- Inherits:
-
Timeout::Error
- Object
- Timeout::Error
- ZuoraAPI::Exceptions::ZuoraAPIReadTimeout
- Defined in:
- lib/zuora_api/exceptions.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#default_message ⇒ Object
writeonly
Sets the attribute default_message.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil, request = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIReadTimeout
constructor
A new instance of ZuoraAPIReadTimeout.
- #to_s ⇒ Object
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( = nil, response = nil, request = nil, errors = [], successes = [], *args) @code = response.class.to_s == "HTTParty::Response" ? response.code : nil @message = @response = response @request = request @default_message = "Authentication type is not supported by this Login" end |
Instance Attribute Details
#code ⇒ Object (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
244 245 246 |
# File 'lib/zuora_api/exceptions.rb', line 244 def (value) @default_message = value end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
243 244 245 |
# File 'lib/zuora_api/exceptions.rb', line 243 def request @request end |
#response ⇒ Object (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_s ⇒ Object
254 255 256 |
# File 'lib/zuora_api/exceptions.rb', line 254 def to_s @message || @default_message end |