Exception: ZuoraAPI::Exceptions::ZuoraAPIInternalServerError
- Inherits:
-
Error
- Object
- StandardError
- Error
- ZuoraAPI::Exceptions::ZuoraAPIInternalServerError
- 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.
-
#successes ⇒ Object
readonly
Returns the value of attribute successes.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIInternalServerError
constructor
A new instance of ZuoraAPIInternalServerError.
- #to_s ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIInternalServerError
Returns a new instance of ZuoraAPIInternalServerError.
98 99 100 101 102 103 104 105 |
# File 'lib/zuora_api/exceptions.rb', line 98 def initialize( = nil,response = nil, errors = [], successes = [], *args) @code = response.class.to_s == "HTTParty::Response" ? response.code : nil @message = () @response = response @default_message = "Zuora Internal Server Error." @errors = errors @successes = successes end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
95 96 97 |
# File 'lib/zuora_api/exceptions.rb', line 95 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
96 97 98 |
# File 'lib/zuora_api/exceptions.rb', line 96 def (value) @default_message = value end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
95 96 97 |
# File 'lib/zuora_api/exceptions.rb', line 95 def errors @errors end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
95 96 97 |
# File 'lib/zuora_api/exceptions.rb', line 95 def response @response end |
#successes ⇒ Object (readonly)
Returns the value of attribute successes.
95 96 97 |
# File 'lib/zuora_api/exceptions.rb', line 95 def successes @successes end |
Instance Method Details
#to_s ⇒ Object
107 108 109 |
# File 'lib/zuora_api/exceptions.rb', line 107 def to_s @message || @default_message end |