Exception: ZuoraAPI::Exceptions::ZuoraAPILockCompetition
- 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) ⇒ ZuoraAPILockCompetition
constructor
A new instance of ZuoraAPILockCompetition.
- #to_s ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPILockCompetition
Returns a new instance of ZuoraAPILockCompetition.
149 150 151 152 153 154 |
# File 'lib/zuora_api/exceptions.rb', line 149 def initialize( = nil,response=nil, errors = [], successes = [], *args) @code = response.class.to_s == "HTTParty::Response" ? response.code : nil @message = () @response = response @default_message = "Operation failed due to lock competition. Please retry" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
146 147 148 |
# File 'lib/zuora_api/exceptions.rb', line 146 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
147 148 149 |
# File 'lib/zuora_api/exceptions.rb', line 147 def (value) @default_message = value end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
146 147 148 |
# File 'lib/zuora_api/exceptions.rb', line 146 def response @response end |
Instance Method Details
#to_s ⇒ Object
156 157 158 |
# File 'lib/zuora_api/exceptions.rb', line 156 def to_s @message || @default_message end |