LayoutError class

Error indicating an unexpected Layout state.

Inheritance

Constructors

LayoutError.empty(Layout a, [String? name])
Constructs an error indicating an empty Layout.
LayoutError.length(Layout a, Layout b, [String? name])
Constructs an error indicating incompatible lengths.
LayoutError.rank(Layout a, Layout b, [String? name])
Constructs an error indicating incompatible ranks.
LayoutError.shape(Layout a, int ai, Layout b, int bi, [String? name])
Constructs an error indicating incompatible shapes.
LayoutError.singular(Layout a, int axes, [String? name])
Constructs an error indicating an expected singular dimension.

Properties

hashCode int
The hash code for this object.
no setterinherited
invalidValue → dynamic
The invalid value.
finalinherited
message → dynamic
Message describing the problem.
finalinherited
name String?
Name of the invalid argument, if available.
finalinherited
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

Static Methods

checkEqualLength(Layout a, Layout b, [String? name]) → void
Asserts that the layouts a and b have the same length.
checkEqualShape(Layout a, Layout b, [String? name]) → void
Asserts that the layouts a and b share the same shape.
checkNotEmpty(Layout layout, [String? name]) → void
Asserts that the layout is not empty.
checkSingular(Layout layout, int axis, [String? name]) → void
Asserts that the layout has a singular dimension on the axis.