1# 页面路由错误码 2 3> **说明:** 4> 5> 以下仅介绍本模块特有错误码,通用错误码请参考[通用错误码说明文档](../errorcode-universal.md)。 6 7## 100001 内部错误 8 9**错误信息** 10 11Internal error. 12 13**错误描述** 14 15当出现了开发者解决不了的内部异常错误,系统会产生此错误码,并描述具体是哪种内部错误。作为@ohos.router的错误码时,该错误码为string类型。 16 17**可能原因** 18 19未成功获取渲染引擎,解析参数失败等。 20 21**处理步骤** 22 23NA 24 25## 100002 路由页面跳转时输入的uri错误 26 27**错误信息** 28 29Uri error. The URI of the page to redirect is incorrect or does not exist 30 31**错误描述** 32 33当跳转页面输入的uri错误或者不存在,系统会产生此错误码。该错误码为string类型。 34 35**可能原因** 36 37输入的路由uri错误或者不存在。 38 39**处理步骤** 40 41请检查输入的路由uri是否正确。 42 43## 100003 路由压入的page过多 44 45**错误信息** 46 47Page stack error. Too many pages are pushed. 48 49**错误描述** 50 51当跳转页面压入页面数超过32,系统会产生此错误码。该错误码为string类型。 52 53**可能原因** 54 55压入pages过多。 56 57**处理步骤** 58 59请清除多余或无效的页面。 60 61## 100004 命名路由页面跳转时输入的name错误 62 63**错误信息** 64 65Named route error. The named route does not exist. 66 67**错误描述** 68 69当跳转命名路由页面输入的name错误或者不存在,系统会产生此错误码。该错误码为string类型。 70 71**可能原因** 72 73输入的命名路由name错误或者不存在。 74 75## 100005 Navigation跳转时未注册builder函数 76 77**错误信息** 78 79Builder function not registered. 80 81**错误描述** 82 83Navigation跳转时,Navigation未注册创建NavDestination组件的builder函数,系统会产生此错误码。 84 85**可能原因** 86 87Navigation跳转时,Navigation未注册创建NavDestination的builder函数。 88 89**处理步骤** 90 91请检查Navigation创建NavDestination的builder函数是否存在。 92 93## 100006 Navigation跳转时目标页面不存在NavDestination组件 94 95**错误信息** 96 97NavDestination not found. 98 99**错误描述** 100 101Navigation跳转时,目标页面不存在NavDestination组件,系统会产生此错误码。 102 103**可能原因** 104 105Navigation跳转时,目标页面不存在NavDestination组件。 106 107**处理步骤** 108 109请检查待跳转的目标页面中是否存在NavDestination组件。 110 111## 200002 路由页面替换时输入的uri错误 112 113**错误信息** 114 115Uri error. The URI of the page to be used for replacement is incorrect or does not exist. 116 117**错误描述** 118 119当替换页面输入的uri错误或不存在,系统会产生此错误码。该错误码为string类型。 120 121**可能原因** 122 123输入的路由uri错误或不存在。 124 125**处理步骤** 126 127请检查输入的路由uri是否正确。 128 129## 300001 Navigation跳转前下载hsp分包失败 130 131**错误信息** 132 133hsp silent install fail. 134 135**错误描述** 136 137Navigation跳转前下载跳转页面所在hsp分包失败,系统会产生此错误码。 138 139**可能原因** 140 141下载的目标hsp分包不存在。 142 143**处理步骤** 144 145请检查待跳转的目标页面所在hsp分包是否存在,传入的moduleName是否正确。