Nokogiri::XML::SyntaxError

class Nokogiri::XML::SyntaxError

Parent:
Nokogiri::SyntaxError

The XML::SyntaxError is raised on parse errors

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

Attributes

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

Public Instance Methods

error?() Show source

return true if this is an error

# File lib/nokogiri/xml/syntax_error.rb, line 32
def error?
  level == 2
end
fatal?() Show source

return true if this error is fatal

# File lib/nokogiri/xml/syntax_error.rb, line 38
def fatal?
  level == 3
end
none?() Show source

return true if this is a non error

# File lib/nokogiri/xml/syntax_error.rb, line 20
def none?
  level == 0
end
to_s() Show source
Calls superclass method
# File lib/nokogiri/xml/syntax_error.rb, line 42
def to_s
  super.chomp
end
warning?() Show source

return true if this is a warning

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

© 2008–2016 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo
Patrick Mahoney, Yoko Harada, Akinori Musha, John Shahid
Licensed under the MIT License.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部