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.



57
58
59
60
61
# File 'lib/xmlrpc/parser.rb', line 57

def initialize(faultCode, faultString)
  @faultCode   = faultCode
  @faultString = faultString
  super(@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)

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



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

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