type=class
superclass=RuntimeError
included=
extended=
dynamically_included=
dynamically_extended=
library=rexml
aliases=
aliasof=

XML のパースに失敗したときに生じる例外です。

  require 'rexml/document'
  begin
    REXML::Document.new("<a>foo\n</b></a> ")
  rescue REXML::ParseException => ex
    ex.position # => 16
    ex.line # => 2
    ex.context # => [16, 2, 2]
  end
