Class: ZuoraAPI::Exceptions::ZuoraAPIConnectionTimeout
- Inherits:
-
Net::OpenTimeout
- Object
- Net::OpenTimeout
- ZuoraAPI::Exceptions::ZuoraAPIConnectionTimeout
- 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.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIConnectionTimeout
constructor
A new instance of ZuoraAPIConnectionTimeout.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIConnectionTimeout
Returns a new instance of ZuoraAPIConnectionTimeout.
230 231 232 233 234 235 |
# File 'lib/zuora_api/exceptions.rb', line 230 def initialize( = nil,response=nil, errors = [], successes = [], *args) @code = response.class.to_s == "HTTParty::Response" ? response.code : nil @message = @response = response @default_message = "Authentication type is not supported by this Login" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
227 228 229 |
# File 'lib/zuora_api/exceptions.rb', line 227 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
228 229 230 |
# File 'lib/zuora_api/exceptions.rb', line 228 def (value) @default_message = value end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
227 228 229 |
# File 'lib/zuora_api/exceptions.rb', line 227 def response @response end |
Instance Method Details
#to_s ⇒ Object
237 238 239 |
# File 'lib/zuora_api/exceptions.rb', line 237 def to_s @message || @default_message end |