Inner class to pass an exception.
# File lib/soap/mapping/encodedregistry.rb, line 29 29: def to_e 30: if @cause.is_a?(::Exception) 31: @cause.extend(::SOAP::Mapping::MappedException) 32: return @cause 33: elsif @cause.respond_to?(:message) and @cause.respond_to?(:backtrace) 34: e = RuntimeError.new(@cause.message) 35: e.set_backtrace(@cause.backtrace) 36: return e 37: end 38: klass = Mapping.class_from_name(Mapping.elename2name(@excn_type_name.to_s)) 39: if klass.nil? or not klass <= ::Exception 40: return RuntimeError.new(@cause.inspect) 41: end 42: obj = klass.new(@cause.message) 43: obj.extend(::SOAP::Mapping::MappedException) 44: obj 45: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.