# File jabber4r/protocol.rb, line 748 def set_error(code,reason) @errorcode=code @error=reason @type="error" self end