Parent

Class Index [+]

Quicksearch

Nokogiri::XML::SyntaxError

 

This class provides information about XML SyntaxErrors. These exceptions are typically stored on Nokogiri::XML::Document#errors.

Attributes

domain[R]
code[R]
level[R]
file[R]
line[R]
str1[R]
str2[R]
str3[R]
int1[R]
column[R]

Public Instance Methods

error?() click to toggle source
 

return true if this is an error

    # File lib/nokogiri/xml/syntax_error.rb, line 32
32:       def error?
33:         level == 2
34:       end
fatal?() click to toggle source
 

return true if this error is fatal

    # File lib/nokogiri/xml/syntax_error.rb, line 38
38:       def fatal?
39:         level == 3
40:       end
none?() click to toggle source
 

return true if this is a non error

    # File lib/nokogiri/xml/syntax_error.rb, line 20
20:       def none?
21:         level == 0
22:       end
to_s() click to toggle source
    # File lib/nokogiri/xml/syntax_error.rb, line 42
42:       def to_s
43:         super.chomp
44:       end
warning?() click to toggle source
 

return true if this is a warning

    # File lib/nokogiri/xml/syntax_error.rb, line 26
26:       def warning?
27:         level == 1
28:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.