RenderError class final
Reported to ContainerErrorHandler when a slot widget's build
throws. Never thrown directly — the slot renders a fallback widget
(or the application's errorBuilder) instead.
- Inheritance
-
- Object
- Error
- ArmatureError
- RenderError
Constructors
- RenderError(String featureName, String message, {StackTrace? stackTrace})
Properties
- featureName → String
-
Name of the feature whose slot widget threw during build.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
Captured stack trace — either passed into the constructor (e.g.
threaded through
wrap(..., stackTrace: st)at acatchsite) or, failing that, the trace the VM attached when this error was thrown.nullonly if the error was never thrown and no trace was supplied.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
Static Methods
-
wrap(
String featureName, Object error, {StackTrace? stackTrace}) → ArmatureError -
Wraps a raw throw from a slot build into a typed RenderError.
Passes
errorthrough unchanged when it's already an ArmatureError; otherwise attaches the providedstackTracefor diagnostics.