Exception: XMLRPC::FaultException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xmlrpc/parser.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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