Exception: StrongKeyLite::SOAPError
- Inherits:
-
ResponseError
- Object
- StandardError
- ResponseError
- StrongKeyLite::SOAPError
- Defined in:
- lib/skles.rb
Overview
Raised when SOAP responses indicate errors.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Attributes inherited from ResponseError
Instance Method Summary collapse
-
#initialize(fault, response) ⇒ SOAPError
constructor
A new instance of SOAPError.
Constructor Details
#initialize(fault, response) ⇒ SOAPError
Returns a new instance of SOAPError.
167 168 169 170 171 172 |
# File 'lib/skles.rb', line 167 def initialize(fault, response) super if code_match = fault.to_s.match(/SKL-ERR-(\d+)/) then @code = code_match[1].try(:to_i) end end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
164 165 166 |
# File 'lib/skles.rb', line 164 def code @code end |