1# *ModuleName* Error Codes
2
3> **NOTE**
4>
5> 1. Delete all writing instructions from your document after you finish the writing.
6>
7> 2. The error code document must be named in the format of **errorcode-*moduleName*.md**, where *moduleName* must be the same as that used in the corresponding API reference document.
8
9|      | Item                        | Writing Instruction                                                        |
10| ---- | ------------------------------ | ------------------------------------------------------------ |
11| 1    | error.errorNumber       | Use the error code IDs that are designed based on the unified error code numbering rule.                        |
12| 2    | error.message         | **Meaning of this field**: If an exception occurs, an error object is thrown. The object contains **errorNumber** and **error.message**, which is a short text description of the error code in English.<br>**Instructions**<br>1. The description should be concise and specific.<br>2. The description should be grammatically correct.  |
13| 3    | Description       | **Meaning of this field**: provides detailed description for the error code, including the use case when and the location where the error code is thrown.<br>**Instructions**<br>1. Describe the use case when the error code is thrown, for example, when developing a specific service or feature.<br>2. Describe the symptom and location of the error (for example, the exact module name, class name, and interface name).|
14| 4    | Possible Causes   | **Meaning of this field**: lists all possible causes of the error.<br>**Instructions**<br>1. List all the possible causes.<br>2. Use concise sentences.<br>3. Sort the causes by possibility in descending order.|
15| 5    | Procedure         | **Meaning of this field**: describes how to handle the error based on the symptom and possible causes.<br>**Instructions**<br>1. Provide the procedure step by step. Each step should correspond to a possible cause. You can use substeps for complex operations of a step.<br>2. The steps should be clear, specific, and executable. If judgment is involved, provide clear judgment criteria.<br>3. If an operation has impact on the system or services, provide warning information in the form of Caution or Warning before the operation.  |
16
17## 1300001 Repeated Operation (Error Code + Space + Error Description)
18
19**Error Message**
20
21This is repeat operation.
22
23**Description**
24
25> *Writing instructions*:
26>
27> Describe the use case (for example, developing a specific service or feature) when the error code is thrown and the symptom.
28
29
30This error code is generated when a repeated operation is performed on the same **Window** object.
31
32**Possible Causes**
33
34> *Writing instructions*:
35>
36> List all possible causes of the error.
37>
38> *1. List all the possible causes.*
39>
40> *2. Use concise sentences.*
41>
42> *3. Sort the causes by possibility in descending order.*
43
44
451. The **Window** object to create already exists.
46
472. xxx.
48
49**Procedure**
50
51> *Writing instructions*:
52>
53> *Describe how to handle the error based on the symptom and possible causes.*
54>
55> 1. Provide the procedure step by step. Each step should correspond to a possible cause. You can use substeps for complex operations of a step.
56>
57> 2. The steps should be clear, specific, and executable. If judgment is involved, provide clear judgment criteria.
58>
59> 3. If an operation has impact on the system or services, provide warning information in the form of Caution or Warning before the operation.
60
61
621. Check whether the **Window** object has been created.
63
64   xxx.
65
66   ```
67   uth([in] String appId, [in] IHwShareCallback callback);
68       int shareFaInfo([in] PacMapEx pacMapEx);
69   }
70   ```
71
722. xxx.
73
74   a. xxx.
75
76      ```
77      uth([in] String appId, [in] IHwShareCallback callback);
78          int shareFaInfo([in] PacMapEx pacMapEx);
79      }
80      ```
81
82   b. xxx.
83
84## 1300002 Abnormal Window State
85
86**Error Message**
87
88xxx
89
90**Description**
91
92xxx
93
94**Possible Causes**
95
961. xxx
97
98**Procedure**
99
1001. Check whether the **Window** object has been created.
101
102   xxx.
103
104   ```
105   uth([in] String appId, [in] IHwShareCallback callback);
106       int shareFaInfo([in] PacMapEx pacMapEx);
107   }
108   ```
109
1102. xxx.
111
112   a. xxx.
113
114      ```
115      uth([in] String appId, [in] IHwShareCallback callback);
116          int shareFaInfo([in] PacMapEx pacMapEx);
117      }
118      ```
119
120   b. xxx.
121