AliasException class

Exception thrown when the path contains an alias along the way.

When a path contains an aliased node, the behavior becomes less well-defined because we cannot be certain if the user wishes for the change to propagate throughout all the other aliased nodes, or if the user wishes for only that particular node to be modified. As such, AliasException reflects the detection that our change will impact an alias, and we do not intend on supporting such changes for the foreseeable future.

Inheritance
Annotations
  • @sealed

Constructors

AliasException(Iterable<Object?> path, YamlNode anchor)

Properties

anchor → YamlNode
The anchor node of the alias
final
hashCode int
The hash code for this object.
no setterinherited
message String
A message describing the format error.
finalinherited
offset int?
The offset in source where the error was detected.
finalinherited
path Iterable<Object?>
The path that caused the error
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → dynamic
The actual source input which caused the error.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a description of the format exception.
inherited

Operators

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