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.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#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
Methods inherited from Error
Constructor Details
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPITemporaryError
Returns a new instance of ZuoraAPITemporaryError.
202 203 204 205 206 207 208 |
# File 'lib/zuora_api/exceptions.rb', line 202 def initialize( = nil, response = nil, errors = [], successes = [], *args) @code = response.class.to_s == "HTTParty::Response" ? response.code : nil = () @response = response = "There is a temporary error with zuora system." @errors = errors end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
199 200 201 |
# File 'lib/zuora_api/exceptions.rb', line 199 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
200 201 202 |
# File 'lib/zuora_api/exceptions.rb', line 200 def (value) = value end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
199 200 201 |
# File 'lib/zuora_api/exceptions.rb', line 199 def errors @errors end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
199 200 201 |
# File 'lib/zuora_api/exceptions.rb', line 199 def response @response end |
Instance Method Details
#to_s ⇒ Object
210 211 212 |
# File 'lib/zuora_api/exceptions.rb', line 210 def to_s || end |