MultiSourceSpanException class

A SourceSpanException that also highlights some secondary spans to provide the user with extra context.

Each span has a label (primaryLabel for the primary, and the values of the secondarySpans map for the secondary spans) that's used to indicate to the user what that particular span represents.

Inheritance
Implementers

Constructors

MultiSourceSpanException(String message, SourceSpan span, String primaryLabel, Map<SourceSpan, String> secondarySpans)

Properties

primaryLabel String
A label to attach to span that provides additional information and helps distinguish it from secondarySpans.
final
secondarySpans Map<SourceSpan, String>
A map whose keys are secondary spans that should be highlighted. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
message String
A message describing the exception.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
span SourceSpan
The span associated with this exception. [...]
read-only, inherited

Methods

toString({dynamic color, String secondaryColor}) String
Returns a string representation of this. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited