Exception: ZuoraAPI::Exceptions::ZuoraDataIntegrity
- 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) ⇒ ZuoraDataIntegrity
constructor
A new instance of ZuoraDataIntegrity.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraDataIntegrity
Returns a new instance of ZuoraDataIntegrity.
139 140 141 142 143 144 |
# File 'lib/zuora_api/exceptions.rb', line 139 def initialize( = nil,response=nil, errors = [], successes = [], *args) @code = response.present? && response.class.to_s == "HTTParty::Response" ? response.code : nil = @response = response = "Operation failed due to lock competition. Please retry" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
136 137 138 |
# File 'lib/zuora_api/exceptions.rb', line 136 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
137 138 139 |
# File 'lib/zuora_api/exceptions.rb', line 137 def (value) = value end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
136 137 138 |
# File 'lib/zuora_api/exceptions.rb', line 136 def response @response end |
Instance Method Details
#to_s ⇒ Object
146 147 148 |
# File 'lib/zuora_api/exceptions.rb', line 146 def to_s || end |