Exception: XMLRPC::FaultException
- Inherits:
-
StandardError
- Object
- StandardError
- XMLRPC::FaultException
- Defined in:
- lib/xmlrpc/parser.rb
Instance Attribute Summary (collapse)
-
- (Object) faultCode
readonly
Returns the value of attribute faultCode.
-
- (Object) faultString
(also: #message)
readonly
Returns the value of attribute faultString.
Instance Method Summary (collapse)
-
- (FaultException) initialize(faultCode, faultString)
constructor
A new instance of FaultException.
-
- (Object) to_h
returns a hash.
Constructor Details
- (FaultException) initialize(faultCode, faultString)
A new instance of FaultException
59 60 61 62 |
# File 'lib/xmlrpc/parser.rb', line 59 def initialize(faultCode, faultString) @faultCode = faultCode @faultString = faultString end |
Instance Attribute Details
- (Object) faultCode (readonly)
Returns the value of attribute faultCode
55 56 57 |
# File 'lib/xmlrpc/parser.rb', line 55 def faultCode @faultCode end |
- (Object) faultString (readonly) Also known as: message
Returns the value of attribute faultString
55 56 57 |
# File 'lib/xmlrpc/parser.rb', line 55 def faultString @faultString end |
Instance Method Details
- (Object) to_h
returns a hash
65 66 67 |
# File 'lib/xmlrpc/parser.rb', line 65 def to_h {"faultCode" => @faultCode, "faultString" => @faultString} end |