Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • xmlrpc/parser.rb




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



Public Class Methods

new(faultCode, faultString) click to toggle source

Creates a new XMLRPC::FaultException instance.

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

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

Public Instance Methods

to_h() click to toggle source

The faultCode and faultString of the exception in a Hash.

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

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit