mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
make error messages much friendlier if a XMLRPC::FaultException is thrown,
by aliasing message to faultString. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
69bed7f7cf
commit
f1587ee5a0
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,8 @@ module XMLRPC
|
|||
class FaultException < StandardError
|
||||
attr_reader :faultCode, :faultString
|
||||
|
||||
alias message faultString
|
||||
|
||||
def initialize(faultCode, faultString)
|
||||
@faultCode = faultCode
|
||||
@faultString = faultString
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue