Exception: Zm::Client::SoapError
- Inherits:
-
StandardError
- Object
- StandardError
- Zm::Client::SoapError
- Defined in:
- lib/zm/client/connector/soap_error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(soapbody) ⇒ SoapError
constructor
A new instance of SoapError.
Constructor Details
#initialize(soapbody) ⇒ SoapError
Returns a new instance of SoapError.
11 12 13 14 15 |
# File 'lib/zm/client/connector/soap_error.rb', line 11 def initialize(soapbody) @reason = soapbody[:Body][:Fault][:Reason][:Text] @code = soapbody[:Body][:Fault][:Detail][:Error][:Code] super "[#{@code}] [#{@reason}]" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/zm/client/connector/soap_error.rb', line 9 def code @code end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
9 10 11 |
# File 'lib/zm/client/connector/soap_error.rb', line 9 def reason @reason end |