提交 4cdd683d 编写于 作者: N niudongyao

add errorcode-datashare.md

Signed-off-by: Nniudongyao <niudongyao@huawei.com>
上级 c9bb141b
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeSettings">
<configurations>
<configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" ENABLED="true" />
</configurations>
</component>
<component name="ChangeListManager">
<list default="true" id="5c65f4ec-a63d-4ff1-ab29-9fe92e34e249" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/zh-cn/application-dev/reference/errorcodes/errorcodes-distributeddatamgr.md" beforeDir="false" afterPath="$PROJECT_DIR$/zh-cn/application-dev/reference/errorcodes/errorcode-datashare.md" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ClangdSettings">
<option name="formatViaClangd" value="false" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectId" id="2G0wWqQWHcOFg370tLtFVfl8HUt" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="RunOnceActivity.cidr.known.project.marker" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="cf.first.check.clang-format" value="false" />
<property name="cidr.known.project.marker" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
</component>
<component name="RunManager">
<configuration default="true" type="GradleAppRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" PASS_PARENT_ENVS_2="true">
<method v="2">
<option name="com.jetbrains.cidr.cpp.gradle.execution.GradleNativeBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="5c65f4ec-a63d-4ff1-ab29-9fe92e34e249" name="Default Changelist" comment="" />
<created>1665538843678</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1665538843678</updated>
<workItem from="1665538847398" duration="3739000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
</component>
</project>
\ No newline at end of file
# 数据共享错误码
## 15700010 创建DataShareHelper异常
### 错误信息
The dataShareHelper is not initialized successfully.
### 错误描述
创建DataShareHelper工具类异常时,系统会产生此错误码。
### 可能原因
1. AMS初始化失败,远程服务端未连接。
2. uri路径不正确。
3. context上下文环境不正确。
### 处理步骤
1. 咨询dataShare服务端提供者,并获取正确的uri路径。
2. 检查context,查看token是否正确。
\ No newline at end of file
# 分布式数据管理子系统错误码
## 201 权限校验失败
### 错误信息
Permission denied.
### 错误描述
调用接口时,若没有配置对应权限,会报此错误码。
### 可能原因
1.
2.
### 处理步骤
查看权限是否已适配,具体配置方式请参考[权限申请声明](../../security/accesstoken-guidelines.md)
## 401 参数检查错误
### 错误信息
Parameter error. The type of ${参数名}$ must be ${正确的类型}$[or ${其他正确输入}$].
### 错误描述
若传入参数的类型或个数不匹配,会报此错误码。
### 可能原因
1. 入参类型错误不匹配。
2. 入参个数不匹配。
### 处理步骤
检查入参类型和个数是否匹配。
## 15700010 创建DataShareHelper异常
### 错误信息
The dataShareHelper is not initialized successfully.
### 错误描述
创建DataShareHelper工具类错误。
### 可能原因
AMS初始化失败。
### 处理步骤
检查 uri context。
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册