Exception: ZuoraAPI::Exceptions::ZuoraAPIUnkownError
- 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) ⇒ ZuoraAPIUnkownError
constructor
A new instance of ZuoraAPIUnkownError.
- #to_s ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIUnkownError
119 120 121 122 123 124 |
# File 'lib/zuora_api/exceptions.rb', line 119 def initialize( = nil,response=nil, errors = [], successes = [], *args) @code = response.class.to_s == "HTTParty::Response" ? response.code : nil = () @response = response = "An unkown error occured. Workflow is not responsible. Please contact Support." end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
116 117 118 |
# File 'lib/zuora_api/exceptions.rb', line 116 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
117 118 119 |
# File 'lib/zuora_api/exceptions.rb', line 117 def (value) = value end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
116 117 118 |
# File 'lib/zuora_api/exceptions.rb', line 116 def response @response end |
Instance Method Details
#to_s ⇒ Object
126 127 128 |
# File 'lib/zuora_api/exceptions.rb', line 126 def to_s || end |