File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -132,13 +132,6 @@ module.exports = {
132
132
alias : '/api/events' ,
133
133
collapsable : true ,
134
134
} ,
135
- {
136
- title : 'Error Types' ,
137
- collapsable : true ,
138
- children : fs . readdirSync ( path . join ( __dirname , '../api/classes' ) )
139
- . filter ( ( n ) => n . match ( / .* e r r o r \. m d $ / ) )
140
- . map ( f => `/api/classes/${ f } ` )
141
- } ,
142
135
] ,
143
136
'/' : [
144
137
{
Original file line number Diff line number Diff line change @@ -51,29 +51,3 @@ hfInstance.on('sheetAdded', handler);
51
51
52
52
const nameProvided = hfInstance .addSheet (' MySheet3' );
53
53
```
54
-
55
- #### Error Types
56
- This page is a list of errors thrown by the HyperFormula instance that may be thrown depending on the method used.
57
-
58
- An example of how you can handle an error: adding a sheet which name is already taken:
59
- ``` javascript
60
- // variable used to carry the message for the user
61
- let messageUsedInUI;
62
-
63
- // attempt to add a sheet
64
- try {
65
- hfInstance .addSheet (' MySheet1' );
66
-
67
- // whoops! there is already a sheet named 'MySheet1'
68
- } catch (e) {
69
-
70
- // notify the user that a sheet with an ID of 5 does not exist
71
- if (e instanceof SheetNameAlreadyTakenError) {
72
- messageUsedInUI = ' Sheet name already taken' ;
73
- }
74
- // a generic error message, just in case
75
- else {
76
- messageUsedInUI = ' Something went wrong' ;
77
- }
78
- }
79
- ```
You can’t perform that action at this time.
0 commit comments