Sha256: 66759def173e7546f629dc91c3da1387be85dc2bde082e6ebe53d955d4b51d5b

Contents?: true

Size: 357 Bytes

Versions: 10

Compression:

Stored size: 357 Bytes

Contents

module Blather

class SASLError < BlatherError
  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.children.first.element_name.gsub('-', '_').to_sym if @node
  end
end #SASLError

end #Blather

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
sprsquish-blather-0.3.0 lib/blather/errors/sasl_error.rb
sprsquish-blather-0.3.1 lib/blather/errors/sasl_error.rb
sprsquish-blather-0.3.2 lib/blather/errors/sasl_error.rb
sprsquish-blather-0.3.3 lib/blather/errors/sasl_error.rb
sprsquish-blather-0.3.4 lib/blather/errors/sasl_error.rb
blather-0.3.1 lib/blather/errors/sasl_error.rb
blather-0.3.0 lib/blather/errors/sasl_error.rb
blather-0.3.4 lib/blather/errors/sasl_error.rb
blather-0.3.3 lib/blather/errors/sasl_error.rb
blather-0.3.2 lib/blather/errors/sasl_error.rb