Sha256: 3d609a42c3c024990554c45b575161bf1bbf0a5997c476329d3df33a7aa07560

Contents?: true

Size: 311 Bytes

Versions: 12

Compression:

Stored size: 311 Bytes

Contents

module Nokogiri
  module XML
    class SyntaxError < ::Nokogiri::SyntaxError
      def none?
        level == 0
      end

      def warning?
        level == 1
      end

      def error?
        level == 2
      end

      def fatal?
        level == 3
      end

      alias :to_s :message
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
nokogiri-1.2.0-java lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.0-x86-mswin32-60 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.0 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.1-java lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.1-x86-mswin32-60 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.1 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.2-x86-mswin32-60 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.2-java lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.2 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.3 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.3-x86-mswin32-60 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.2.3-java lib/nokogiri/xml/syntax_error.rb