Sha256: 82cb58f0a323bae8bc66f33e9fbb69411dd27849e92cd3c545fe3c499b045e6f

Contents?: true

Size: 441 Bytes

Versions: 13

Compression:

Stored size: 441 Bytes

Contents

module Blather

class SASLError < BlatherError
  SASL_ERR_NS = 'urn:ietf:params:xml:ns:xmpp-sasl'

  class_inheritable_accessor :err_name
  @@registrations = {}

  register :sasl_error

  def self.import(node)
    self.new node
  end

  def initialize(node)
    super()
    @node = node
  end

  def name
    @node.find_first('err_ns:*', :err_ns => SASL_ERR_NS).element_name.gsub('-', '_').to_sym if @node
  end
end #SASLError

end #Blather

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sprsquish-blather-0.4.0 lib/blather/errors/sasl_error.rb
sprsquish-blather-0.4.1 lib/blather/errors/sasl_error.rb
sprsquish-blather-0.4.2 lib/blather/errors/sasl_error.rb
sprsquish-blather-0.4.3 lib/blather/errors/sasl_error.rb
sprsquish-blather-0.4.4 lib/blather/errors/sasl_error.rb
blather-0.4.7 lib/blather/errors/sasl_error.rb
blather-0.4.6 lib/blather/errors/sasl_error.rb
blather-0.4.5 lib/blather/errors/sasl_error.rb
blather-0.4.4 lib/blather/errors/sasl_error.rb
blather-0.4.3 lib/blather/errors/sasl_error.rb
blather-0.4.1 lib/blather/errors/sasl_error.rb
blather-0.4.2 lib/blather/errors/sasl_error.rb
blather-0.4.0 lib/blather/errors/sasl_error.rb