# XMLRPC error handling?

**URL:** <https://www.ruby-forum.com/t/xmlrpc-error-handling/86920>\
**Category:** Rails\
**Created:** [February 26, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/xmlrpc-error-handling/86920 "2007-02-26T22:26:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/f04885/32.png) [@zaq](https://www.ruby-forum.com/u/zaq)\
**Post date:** [February 26, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/xmlrpc-error-handling/86920/1 "2007-02-26T22:26:17Z")

</div>

I’m looking for docs on how to manage errors in XMLRPC

i get Errno::ECONNREFUSED in my query

which is cool because the host isn’t running the XMLRPC server. but  
where are the code examples to manage things like that?

thanks

this doesn’t seem to cut it…  
rescue XMLRPC::FaultException =\> e  
puts “Error:”  
puts e.faultCode  
puts e.faultString

-zaq

---

<div class="post-metadata">

**Author:** ![zaq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/f04885/32.png) [@zaq](https://www.ruby-forum.com/u/zaq)\
**Post date:** [February 27, 2007, 7:11am UTC](https://www.ruby-forum.com/t/xmlrpc-error-handling/86920/2 "2007-02-27T07:11:01Z")

</div>

If you’re getting a Errno::ECONNREFUSED error, then you have to rescue  
for that.

rescue Errno::ECONNREFUSED  
[…]

Vish
