Exception: ZuoraAPI::Exceptions::ZuoraAPITemporaryError
- 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) ⇒ ZuoraAPITemporaryError
constructor
A new instance of ZuoraAPITemporaryError.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPITemporaryError
160 161 162 163 164 165 |
# File 'lib/zuora_api/exceptions.rb', line 160 def initialize( = nil,response=nil, errors = [], successes = [], *args) @code = response.present? && response.class.to_s == "HTTParty::Response" ? response.code : nil = @response = response = "There is a temporary error with zuora system." end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
157 158 159 |
# File 'lib/zuora_api/exceptions.rb', line 157 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
158 159 160 |
# File 'lib/zuora_api/exceptions.rb', line 158 def (value) = value end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
157 158 159 |
# File 'lib/zuora_api/exceptions.rb', line 157 def response @response end |
Instance Method Details
#to_s ⇒ Object
167 168 169 |
# File 'lib/zuora_api/exceptions.rb', line 167 def to_s || end |