1# 页面路由错误码 2<!--Kit: ArkUI--> 3<!--Subsystem: ArkUI--> 4<!--Owner: @mayaolll--> 5<!--Designer: @jiangdayuan--> 6<!--Tester: @lxl007--> 7<!--Adviser: @HelloCrease--> 8 9> **说明:** 10> 11> 以下仅介绍本模块特有错误码,通用错误码请参考[通用错误码说明文档](../errorcode-universal.md)。 12 13## 100001 内部错误 14 15**错误信息** 16 17作为@ohos.router的错误码时,错误信息为:Internal error. UI execution context is not found. 18 19作为Navigation路由框架的错误码时,错误信息为:Internal error. Create NavDestination failed, probably caused by wrong UIContext. 20 21**错误描述** 22 23当出现了开发者解决不了的内部异常错误,系统会产生此错误码,并描述具体是哪种内部错误。作为@ohos.router的错误码时,该错误码为string类型。作为Navigation路由框架的错误码时,该错误码为number类型。 24 25**可能原因** 26 27未成功获取渲染引擎,解析参数失败等。 28 29**处理步骤** 30 31NA 32 33## 100002 路由页面跳转时输入的uri错误 34 35**错误信息** 36 37Uri error. The URI of the page to redirect is incorrect or does not exist. 38 39**错误描述** 40 41当跳转页面输入的uri错误或者不存在,系统会产生此错误码。该错误码为string类型。 42 43**可能原因** 44 45输入的路由uri错误或者不存在。 46 47**处理步骤** 48 49请检查输入的路由uri是否正确。 50 51## 100003 路由压入的page过多 52 53**错误信息** 54 55Page stack error. Too many pages are pushed. 56 57**错误描述** 58 59当跳转页面压入页面数超过32,系统会产生此错误码。该错误码为string类型。 60 61**可能原因** 62 63压入pages过多。 64 65**处理步骤** 66 67请清除多余或无效的页面。 68 69## 100004 命名路由页面跳转时输入的name错误 70 71**错误信息** 72 73Named route error. The named route does not exist. 74 75**错误描述** 76 77当跳转命名路由页面输入的name错误或者不存在,系统会产生此错误码。该错误码为string类型。 78 79**可能原因** 80 81输入的命名路由name错误或者不存在。 82 83## 100005 Navigation跳转时未注册builder函数 84 85**错误信息** 86 87Builder function not registered. 88 89**错误描述** 90 91Navigation跳转时,Navigation未注册创建NavDestination组件的builder函数,系统会产生此错误码。 92 93**可能原因** 94 95Navigation跳转时,Navigation未注册创建NavDestination的builder函数。 96 97**处理步骤** 98 99请检查Navigation创建NavDestination的builder函数是否存在。 100 101## 100006 Navigation跳转时目标页面不存在NavDestination组件 102 103**错误信息** 104 105NavDestination not found. 106 107**错误描述** 108 109Navigation跳转时,目标页面不存在NavDestination组件,系统会产生此错误码。 110 111**可能原因** 112 113Navigation跳转时,目标页面不存在NavDestination组件。 114 115**处理步骤** 116 117请检查待跳转的目标页面中是否存在NavDestination组件。 118 119## 106200 传入的索引值非法 120 121**错误信息** 122 123index value is invalid. 124 125**错误描述** 126 127传入的索引值非法。 128 129**可能原因** 130 131index为非法值。 132 133**处理步骤** 134 135请检查传入的索引值。 136 137## 106201 查询路由导航信息失败 138 139**错误信息** 140 141Failed to query route navigation information. 142 143**错误描述** 144 145查询路由导航信息失败。 146 147**可能原因** 148 149可能因为当前节点不在Navigation中。 150 151**处理步骤** 152 153请检查当前节点是否在Navigation中。 154 155## 106202 传入的buffer size异常 156 157**错误信息** 158 159buffer size is not large enough. 160 161**错误描述** 162 163传入的buffer size异常。 164 165**可能原因** 166 167给定的buffer size小于可以容纳目标的最小缓冲区大小。 168 169**处理步骤** 170 171请检查给定的buffer size。 172 173## 200002 路由页面替换时输入的uri错误 174 175**错误信息** 176 177Uri error. The URI of the page to be used for replacement is incorrect or does not exist. 178 179**错误描述** 180 181当替换页面输入的uri错误或不存在,系统会产生此错误码。该错误码为string类型。 182 183**可能原因** 184 185输入的路由uri错误或不存在。 186 187**处理步骤** 188 189请检查输入的路由uri是否正确。 190 191## 300001 Navigation跳转前下载hsp分包失败 192 193**错误信息** 194 195hsp silent install fail. 196 197**错误描述** 198 199Navigation跳转前下载跳转页面所在hsp分包失败,系统会产生此错误码。 200 201**可能原因** 202 203下载的目标hsp分包不存在。 204 205**处理步骤** 206 207请检查待跳转的目标页面所在hsp分包是否存在,传入的moduleName是否正确。