Class
Raised when the remote procedure returns a fault-structure, which has two accessor-methods faultCode an Integer, and faultString a String.
Attributes
Read
No documentation available
Read
No documentation available
Class Methods
lib/xmlrpc/parser.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/xmlrpc/parser.rb, line 59
def initialize(faultCode, faultString)
@faultCode = faultCode
@faultString = faultString
super(@faultString)
end
Creates a new XMLRPC::FaultException instance.
faultString is passed to StandardError as the msg of the Exception.
Instance Methods
#
lib/xmlrpc/parser.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/xmlrpc/parser.rb, line 66
def to_h
{"faultCode" => @faultCode, "faultString" => @faultString}
end
The faultCode and faultString of the exception in a Hash.