Sha256: 1f90a0f38d9cbe7e1ca4f948efba658c80269794f0300a810caeeed4a2c29828
Contents?: true
Size: 744 Bytes
Versions: 3
Compression:
Stored size: 744 Bytes
Contents
# =XMPP4R - XMPP Library for Ruby # License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option. # Website::http://home.gna.org/xmpp4r/ module Jabber ## # This exception can be raised by Helpers when they # receive answers with <tt>type='error'</tt> # # The ErrorException carries a Jabber::Error element class ErrorException < RuntimeError ## # The error element which caused this exception attr_reader :error ## # Initialize an ErrorException # error:: [Error] def initialize(error) @error = error end ## # Textual output # # Sample: # subscription-required: Please subscribe first def to_s "#{@error.error}: #{@error.text}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xmpp4r-0.3 | lib/xmpp4r/errorexception.rb |
xmpp4r-0.3.1 | lib/xmpp4r/errorexception.rb |
xmpp4r-0.3.2 | lib/xmpp4r/errorexception.rb |