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