SpecCreationError class
A rejected node-creation attempt. Thrown by SpecNodeCreator.add and returned (rather than thrown) by checkAddNode.
- Implemented types
Constructors
- SpecCreationError({required String parentPath, required String childSegment, required SpecCreationCode code, required String message})
-
All four fields are required.
codeis what a caller branches on andmessagewhat it shows, whileparentPathandchildSegmentsay where: a rejection with no location cannot be surfaced against the tree the user is looking at. Note the pair names the attempted position, so joining them does not yield a path that exists — the whole point is that the add did not happen.const
Properties
- childSegment → String
-
The child section segment that was requested.
final
- code → SpecCreationCode
-
Why the add is illegal.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable explanation.
final
- parentPath → String
-
The parent path the add was attempted under.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
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