Class Jabber::ErrorException
In: lib/xmpp4r/errorexception.rb
Parent: RuntimeError

This exception can be raised by Helpers when they receive answers with type=‘error‘

The ErrorException carries a Jabber::Error element

Methods

new   to_s  

Attributes

error  [R]  The error element which caused this exception

Public Class methods

Initialize an ErrorException

error:[Error]

[Source]

    # File lib/xmpp4r/errorexception.rb, line 19
19:     def initialize(error)
20:       @error = error
21:     end

Public Instance methods

Textual output

Sample:

 subscription-required: Please subscribe first

[Source]

    # File lib/xmpp4r/errorexception.rb, line 28
28:     def to_s
29:       "#{@error.error}: #{@error.text}"
30:     end

[Validate]