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
Returns a new instance of ZuoraAPIUnkownError.
133 134 135 136 137 138 |
# File 'lib/zuora_api/exceptions.rb', line 133 def initialize( = nil,response=nil, errors = [], successes = [], *args) @code = response.class.to_s == "HTTParty::Response" ? response.code : nil @message = () @response = response @default_message = "An unkown error occured. Workflow is not responsible. Please contact Support." end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
130 131 132 |
# File 'lib/zuora_api/exceptions.rb', line 130 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
131 132 133 |
# File 'lib/zuora_api/exceptions.rb', line 131 def (value) @default_message = value end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
130 131 132 |
# File 'lib/zuora_api/exceptions.rb', line 130 def response @response end |
Instance Method Details
#to_s ⇒ Object
140 141 142 |
# File 'lib/zuora_api/exceptions.rb', line 140 def to_s @message || @default_message end |