VyuhFailure class final

A failure the framework shows to the user and reports to telemetry.

The same object flows through RouteFailureEvent, SystemInitFailedEvent, FeatureLoadFailedEvent and the error views of PlatformWidgetBuilder, so listeners and views see one consistent description.

Constructors

VyuhFailure({required FailureKind kind, required String title, String? message, Object? error, StackTrace? stackTrace, Uri? location, String? featureName})
const

Properties

canGoHome → bool
Whether going to the home route can recover from this failure. Init failures happen before the router exists, so only restart helps.
no setter
error → Object?
The underlying error, shown only in debug builds.
final
featureName → String?
The feature involved, when known.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → FailureKind
The category of the failure.
final
location → Uri?
The location that failed, when the failure belongs to a route.
final
message → String?
An optional user-facing explanation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
The stack trace of error, shown only in debug builds.
final
title → String
A short, user-facing title.
final

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