OutputShapeError class

Error thrown when a value's shape is incompatible with a requested output format.

Carries the structured report describing the mismatch and the available remediations. Consumers that inspect the report can render suggestions in their own UI; the inherited message provides a rendered text summary for callers that only catch QueryError.

Inheritance

Constructors

OutputShapeError(NotWritable report)
Creates an OutputShapeError from report.

Properties

format OutputFormat
The output format that was requested.
no setter
got Shape
The actual shape that was produced.
no setter
hashCode int
The hash code for this object.
no setterinherited
message String
The error message.
finalinherited
report NotWritable
The structured shape-mismatch report.
final
required ShapeRequirement
The requirement the format imposes.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestions List<Remediation>
Query-fragment suggestions that would produce a compatible shape.
no setter

Methods

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

Operators

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