lib/blather/errors.rb in sprsquish-blather-0.3.4 vs lib/blather/errors.rb in sprsquish-blather-0.4.0

- old
+ new

@@ -33,32 +33,15 @@ @node = node end end ## - # TLS negotiations broke down - class TLSFailure < BlatherError - register :tls_failure - end - - class ParseWarning < BlatherError - register :parse_warning - attr_reader :libxml_error, :message - - def initialize(err) - @libxml_error = err - @message = err.to_s - end - end - - ## # Something bad happened while parsing the incoming stream class ParseError < BlatherError register :parse_error - attr_reader :libxml_error, :message + attr_reader :message - def initialize(err) - @libxml_error = err - @message = err.to_s + def initialize(msg) + @message = msg.to_s end end end