BuildError class abstract

Base error type for all known fatal errors encountered while compiling.

Errors that are not sub-types of BuildError are treated as unhandled errors and are logged internally as invariants we should instead be fixing or treating as build errors.

Inheritance
Implementers

Constructors

BuildError()
BuildError.forAnnotation(ElementAnnotation context, String message)
Creates a build error using the provided source annotation as context.
factory
BuildError.forElement(Element context, String message)
Creates a build error using the provided source element as context.
factory
BuildError.forSourceSpan(SourceSpan context, String message)
Create a build error using the provided source span as context.
factory
BuildError.fromMultiple(Iterable<BuildError> errors, [String header = 'Multiple errors occurred'])
Collapse multiple errors into a single error.
factory
BuildError.withoutContext(String message)
Create a simple build error with a message-only description.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace at the point where this error was first thrown.
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.
inherited

Operators

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