-
Notifications
You must be signed in to change notification settings - Fork 63
/
word.errorcodes.yml
75 lines (67 loc) · 1.94 KB
/
word.errorcodes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
### YamlMime:TSEnum
name: Word.ErrorCodes
uid: 'word!Word.ErrorCodes:enum'
package: word!
fullName: Word.ErrorCodes
summary: ''
remarks: >-
#### Examples
```TypeScript
// Link to full sample:
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/10-content-controls/insert-and-change-checkbox-content-control.yaml
async function tryCatch(callback) {
try {
await callback();
} catch (error) {
// Note: In a production add-in, you'd want to notify the user through your add-in's UI.
if (error.code === Word.ErrorCodes.itemNotFound) {
console.warn("No checkbox content control is currently selected.");
} else {
console.error(error);
}
}
}
```
isPreview: false
isDeprecated: false
fields:
- name: accessDenied
uid: 'word!Word.ErrorCodes.accessDenied:member'
package: word!
summary: ''
value: '"AccessDenied"'
- name: generalException
uid: 'word!Word.ErrorCodes.generalException:member'
package: word!
summary: ''
value: '"GeneralException"'
- name: invalidArgument
uid: 'word!Word.ErrorCodes.invalidArgument:member'
package: word!
summary: ''
value: '"InvalidArgument"'
- name: itemNotFound
uid: 'word!Word.ErrorCodes.itemNotFound:member'
package: word!
summary: ''
value: '"ItemNotFound"'
- name: notAllowed
uid: 'word!Word.ErrorCodes.notAllowed:member'
package: word!
summary: ''
value: '"NotAllowed"'
- name: notImplemented
uid: 'word!Word.ErrorCodes.notImplemented:member'
package: word!
summary: ''
value: '"NotImplemented"'
- name: searchDialogIsOpen
uid: 'word!Word.ErrorCodes.searchDialogIsOpen:member'
package: word!
summary: ''
value: '"SearchDialogIsOpen"'
- name: searchStringInvalidOrTooLong
uid: 'word!Word.ErrorCodes.searchStringInvalidOrTooLong:member'
package: word!
summary: ''
value: '"SearchStringInvalidOrTooLong"'