XmlTagException class

Exception thrown when the end tag does not match the open tag.

Inheritance
Mixed-in types

Constructors

XmlTagException(String message, {String? expectedName, String? actualName, String? buffer, int? position})
Creates a new XmlTagException.
XmlTagException.mismatchClosingTag(String expectedName, String actualName, {String? buffer, int? position})
Creates a new XmlTagException where expectedName was expected, but instead we found actualName.
factory
XmlTagException.missingClosingTag(String expectedName, {String? buffer, int? position})
Creates a new XmlTagException for a missing closing tag.
factory
XmlTagException.unexpectedClosingTag(String actualName, {String? buffer, int? position})
Creates a new XmlTagException for an unexpected closing tag.
factory

Properties

actualName String?
The tag name that was found, or null.
final
buffer String?
The input buffer which caused the error, or null if not available.
getter/setter pairoverride-getter
column int
The column number where the parser error was detected, or 0 if no location information is available.
latefinalinherited
expectedName String?
The tag name that was expected, or null.
final
hashCode int
The hash code for this object.
no setterinherited
line int
The line number where the parser error was detected, or 0 if no location information is available.
latefinalinherited
locationString String
no setterinherited
message String
A message describing the XML error.
finalinherited
offset int?
The offset in source where the error was detected.
no setterinherited
position int?
The offset in buffer where the error was detected, or null if no location information is available.
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String?
The actual source input which caused the error.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkClosingTag(String expectedName, String actualName, {String? buffer, int? position}) → void
Ensure that the expected tag matches the actual one.