Sha256: 2cb69048e6cb924ae30453a9a0caf16c98f7c0ad2e8f0fee57deb02eb9a0febe

Contents?: true

Size: 668 Bytes

Versions: 19

Compression:

Stored size: 668 Bytes

Contents

module Nokogiri
  module XML
    ###
    # This class provides information about XML SyntaxErrors.  These
    # exceptions are typically stored on Nokogiri::XML::Document#errors.
    class SyntaxError < ::Nokogiri::SyntaxError
      ###
      # return true if this is a non error
      def none?
        level == 0
      end

      ###
      # return true if this is a warning
      def warning?
        level == 1
      end

      ###
      # return true if this is an error
      def error?
        level == 2
      end

      ###
      # return true if this error is fatal
      def fatal?
        level == 3
      end

      alias :to_s :message
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
akamai_bookmarklet-0.1.2 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/syntax_error.rb
akamai_bookmarklet-0.1.1 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/syntax_error.rb
akamai_bookmarklet-0.1.0 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.3-x86-mswin32 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.3-x86-mingw32 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.3-java lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.2-x86-mswin32 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.2-x86-mingw32 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.2-java lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.0-x86-mingw32 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.2 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.3 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.0-java lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.0-x86-mswin32 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.1-x86-mingw32 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.1-java lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.0 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.1-x86-mswin32 lib/nokogiri/xml/syntax_error.rb
nokogiri-1.3.1 lib/nokogiri/xml/syntax_error.rb