Class: XMLRPC::FaultException (Ruby 2.3.4)

XMLRPC::FaultException

Raised when the remote procedure returns a fault-structure, which has two accessor-methods faultCode an Integer, and faultString a String.

Attributes

faultCode[R]
faultString[R]

Public Class Methods

new(faultCode, faultString)

Creates a new XMLRPC::FaultException instance.

faultString is passed to StandardError as the msg of the Exception.

 
               # File xmlrpc/parser.rb, line 59
def initialize(faultCode, faultString)
  @faultCode   = faultCode
  @faultString = faultString
  super(@faultString)
end
            

Public Instance Methods

to_h()

The faultCode and faultString of the exception in a Hash.

 
               # File xmlrpc/parser.rb, line 66
def to_h
  {"faultCode" => @faultCode, "faultString" => @faultString}
end