Exception: XMLRPC::FaultException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#faultCodeObject (readonly)

Returns the value of attribute faultCode



55
56
57
# File 'lib/xmlrpc/parser.rb', line 55

def faultCode
  @faultCode
end

#faultStringObject (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_hObject

returns a hash



65
66
67
# File 'lib/xmlrpc/parser.rb', line 65

def to_h
  {"faultCode" => @faultCode, "faultString" => @faultString}
end