API 参考 / NavigationFailure
接口:NavigationFailure %{#interface-navigationfailure}%
Error 类型的扩展,包含导航失败的额外信息。
继承关系 %{#Hierarchy}%
Error↳
NavigationFailure
属性 %{#Properties}%
cause %{#Properties-cause}%
• 可选 cause: unknown
继承自 %{#Properties-cause-Inherited-from}%
Error.cause
from %{#Properties-from}%
• from: RouteLocationNormalized
上一个路由位置
message %{#Properties-message}%
• message: string
继承自 %{#Properties-message-Inherited-from}%
Error.message
name %{#Properties-name}%
• name: string
继承自 %{#Properties-name-Inherited-from}%
Error.name
stack %{#Properties-stack}%
• 可选 stack: string
继承自 %{#Properties-stack-Inherited-from}%
Error.stack
to %{#Properties-to}%
• to: RouteLocationNormalized
要导航至的下一个路由位置
type %{#Properties-type}%
• type: NAVIGATION_ABORTED | NAVIGATION_CANCELLED | NAVIGATION_DUPLICATED
导航类型。属于 NavigationFailureType 的一种。
