expected ( line column -- * ) (original) (raw)

expected ( line column -- * )
XML parsing errors

Prev: mismatched ( line column -- * )
Next: no-entity ( line -- * )

Vocabulary
xml.errors

Class description
XML parsing error describing when an expected token was not present. Contains two slots, should-be, which has the expected string, and was, which has the actual string.

Definition

IN: xml.errors

ERROR: expected line column should-be was ;

Methods

USING: accessors debugger generic io kernel xml.errors ;

M: expected error.
dup M\ expected error. (call-next-method)
"Token expected: " write dup should-be>> print
"Token present: " write was>> print ;