Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Property definitions

sax $ XMLReader :: error_handler=
	# Allow an application to register an error event handler.
	#
	# If the application does not register an error handler, all
	# error events reported by the SAX parser will be silently
	# ignored; however, normal processing may not continue. It is
	# highly recommended that all SAX applications implement an
	# error handler to avoid unexpected bugs.
	#
	# Applications may register a new or different handler in the
	# middle of a parse, and the SAX parser must begin using the new
	# handler immediately.
	fun error_handler=(handler: nullable ErrorHandler) is abstract
lib/sax/xml_reader.nit:229,2--240,63

saxophonit $ XophonReader :: error_handler=
	redef fun error_handler=(error_handler) do
		model.error_handler = error_handler
	end
lib/saxophonit/saxophonit.nit:87,2--89,4

sax $ XMLFilterImpl :: error_handler=
	redef var error_handler = null is writable
lib/sax/helpers/xml_filter_impl.nit:52,2--43