@breautek/storm 5.0.1 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/CHANGELOG.md +24 -2
  2. package/bt-config-defaults.json +0 -1
  3. package/bt-config-sample.jsonc +41 -7
  4. package/docs/assets/highlight.css +92 -0
  5. package/docs/assets/main.js +58 -0
  6. package/docs/assets/search.js +1 -0
  7. package/docs/assets/style.css +1367 -0
  8. package/docs/classes/Application.html +1278 -0
  9. package/docs/classes/BackendAuthenticationMiddleware.html +193 -0
  10. package/docs/classes/CORSMiddleware.html +259 -0
  11. package/docs/classes/ConfigLoader.html +168 -0
  12. package/docs/classes/Database.html +342 -0
  13. package/docs/classes/DatabaseCastObject.html +205 -0
  14. package/docs/classes/DatabaseConnection.html +552 -0
  15. package/docs/classes/DatabaseQueryError.html +374 -0
  16. package/docs/classes/DeadLockError.html +374 -0
  17. package/docs/classes/DiskSpaceError.html +364 -0
  18. package/docs/classes/DropTemporaryTableQuery.html +287 -0
  19. package/docs/classes/DuplicateEntryError.html +368 -0
  20. package/docs/classes/EntityNotFoundError.html +364 -0
  21. package/docs/classes/ExpiredTokenError.html +364 -0
  22. package/docs/classes/Handler.html +397 -0
  23. package/docs/classes/InternalError.html +364 -0
  24. package/docs/classes/InvalidCredentialsError.html +364 -0
  25. package/docs/classes/InvalidValueError.html +375 -0
  26. package/docs/classes/LineString.html +214 -0
  27. package/docs/classes/LockWaitTimeoutError.html +374 -0
  28. package/docs/classes/ManagedDatabaseConnection.html +412 -0
  29. package/docs/classes/Middleware.html +204 -0
  30. package/docs/classes/MissingConfigError.html +364 -0
  31. package/docs/classes/MissingParameterError.html +364 -0
  32. package/docs/classes/MySQLConnection.html +548 -0
  33. package/docs/classes/MySQLDatabase.html +355 -0
  34. package/docs/classes/NotImplementedError.html +364 -0
  35. package/docs/classes/Point.html +216 -0
  36. package/docs/classes/Polygon.html +214 -0
  37. package/docs/classes/Query.html +314 -0
  38. package/docs/classes/RawError.html +376 -0
  39. package/docs/classes/RawQuery.html +307 -0
  40. package/docs/classes/Request.html +377 -0
  41. package/docs/classes/Response.html +331 -0
  42. package/docs/classes/ResponseData.html +257 -0
  43. package/docs/classes/ServiceProvider.html +387 -0
  44. package/docs/classes/ServiceResponse.html +215 -0
  45. package/docs/classes/SetSessionVariableQuery.html +287 -0
  46. package/docs/classes/StormError.html +379 -0
  47. package/docs/classes/TemporaryTableQuery.html +292 -0
  48. package/docs/classes/Token.html +183 -0
  49. package/docs/classes/TokenManager.html +235 -0
  50. package/docs/classes/Transaction.html +269 -0
  51. package/docs/classes/UnauthorizedAccessError.html +364 -0
  52. package/docs/enums/ErrorCode.html +212 -0
  53. package/docs/enums/ExitCode.html +163 -0
  54. package/docs/enums/HTTPMethod.html +177 -0
  55. package/docs/enums/IsolationLevel.html +177 -0
  56. package/docs/enums/JWTError.html +163 -0
  57. package/docs/enums/StatusCode.html +485 -0
  58. package/docs/functions/formidable-1.html +145 -0
  59. package/docs/functions/getInstance.html +140 -0
  60. package/docs/index.html +228 -0
  61. package/docs/interfaces/IAdditionalErrorDetails.html +142 -0
  62. package/docs/interfaces/IAuthTokenData.html +174 -0
  63. package/docs/interfaces/ICloudwatchConfig.html +174 -0
  64. package/docs/interfaces/ICloudwatchCredentials.html +167 -0
  65. package/docs/interfaces/ICloudwatchStreamConfig.html +167 -0
  66. package/docs/interfaces/IConfig.html +227 -0
  67. package/docs/interfaces/IDatabaseConfig.html +200 -0
  68. package/docs/interfaces/IDatabaseConnection.html +334 -0
  69. package/docs/interfaces/IErrorResponse.html +188 -0
  70. package/docs/interfaces/IFormData.html +167 -0
  71. package/docs/interfaces/IHandler.html +173 -0
  72. package/docs/interfaces/IInsertQueryResult.html +174 -0
  73. package/docs/interfaces/IJWTVerifyOptions.html +160 -0
  74. package/docs/interfaces/IParameterMap.html +142 -0
  75. package/docs/interfaces/IQueryable.html +235 -0
  76. package/docs/interfaces/IRequestResponse.html +174 -0
  77. package/docs/interfaces/IServiceHeaders.html +142 -0
  78. package/docs/interfaces/ISetSessionVariableQueryInput.html +167 -0
  79. package/docs/interfaces/ITemporaryTableQueryInput.html +167 -0
  80. package/docs/interfaces/IUpdateQueryResult.html +167 -0
  81. package/docs/interfaces/formidable.EmitData.html +182 -0
  82. package/docs/interfaces/formidable.EventData.html +203 -0
  83. package/docs/interfaces/formidable.Fields.html +143 -0
  84. package/docs/interfaces/formidable.File.html +241 -0
  85. package/docs/interfaces/formidable.FileJSON.html +240 -0
  86. package/docs/interfaces/formidable.Files.html +143 -0
  87. package/docs/interfaces/formidable.Options.html +310 -0
  88. package/docs/interfaces/formidable.Part.html +693 -0
  89. package/docs/modules/formidable.html +161 -0
  90. package/docs/types/IDeleteQueryResult.html +136 -0
  91. package/docs/types/IHandlerError.html +141 -0
  92. package/docs/types/IHandlerResponse.html +147 -0
  93. package/docs/types/TCoordinate.html +136 -0
  94. package/docs/types/formidable.BufferEncoding.html +137 -0
  95. package/docs/types/formidable.DefaultOptions.html +137 -0
  96. package/docs/types/formidable.EnabledPlugins.html +137 -0
  97. package/docs/types/formidable.EventNames.html +137 -0
  98. package/docs/types/formidable.MappedParsers.html +137 -0
  99. package/docs/types/formidable.Plugin.html +137 -0
  100. package/docs/types/formidable.PluginFunction.html +152 -0
  101. package/docs/types/formidable.Plugins.html +137 -0
  102. package/lib/Application.d.ts +3 -0
  103. package/lib/Application.js +105 -63
  104. package/lib/Application.js.map +1 -1
  105. package/lib/IConfig.d.ts +15 -2
  106. package/lib/MySQLConnection.js +3 -3
  107. package/lib/MySQLConnection.js.map +1 -1
  108. package/lib/StatusCode.d.ts +1 -1
  109. package/lib/StatusCode.js +1 -1
  110. package/lib/Transaction.d.ts +4 -0
  111. package/lib/Transaction.js +4 -0
  112. package/lib/Transaction.js.map +1 -1
  113. package/lib/api.d.ts +1 -2
  114. package/lib/api.js +2 -4
  115. package/lib/api.js.map +1 -1
  116. package/package.json +18 -16
  117. package/src/Application.ts +131 -68
  118. package/src/IConfig.ts +18 -2
  119. package/src/MySQLConnection.ts +2 -1
  120. package/src/StatusCode.ts +1 -1
  121. package/src/Transaction.ts +4 -0
  122. package/src/api.ts +6 -2
  123. package/docs/README.md +0 -188
  124. package/docs/classes/Application.md +0 -1648
  125. package/docs/classes/BackendAuthenticationMiddleware.md +0 -49
  126. package/docs/classes/CORSMiddleware.md +0 -143
  127. package/docs/classes/ConfigLoader.md +0 -29
  128. package/docs/classes/Database.md +0 -259
  129. package/docs/classes/DatabaseCastObject.md +0 -79
  130. package/docs/classes/DatabaseConnection.md +0 -556
  131. package/docs/classes/DatabaseQueryError.md +0 -351
  132. package/docs/classes/DeadLockError.md +0 -349
  133. package/docs/classes/DiskSpaceError.md +0 -341
  134. package/docs/classes/DropTemporaryTableQuery.md +0 -207
  135. package/docs/classes/DumpStream.md +0 -23
  136. package/docs/classes/DuplicateEntryError.md +0 -343
  137. package/docs/classes/EntityNotFoundError.md +0 -341
  138. package/docs/classes/ExpiredTokenError.md +0 -341
  139. package/docs/classes/Handler.md +0 -302
  140. package/docs/classes/InternalError.md +0 -341
  141. package/docs/classes/InvalidCredentialsError.md +0 -341
  142. package/docs/classes/InvalidValueError.md +0 -349
  143. package/docs/classes/LineString.md +0 -101
  144. package/docs/classes/LockWaitTimeoutError.md +0 -349
  145. package/docs/classes/ManagedDatabaseConnection.md +0 -403
  146. package/docs/classes/Middleware.md +0 -72
  147. package/docs/classes/MissingConfigError.md +0 -341
  148. package/docs/classes/MissingParameterError.md +0 -341
  149. package/docs/classes/MySQLConnection.md +0 -569
  150. package/docs/classes/MySQLDatabase.md +0 -314
  151. package/docs/classes/NotImplementedError.md +0 -341
  152. package/docs/classes/Point.md +0 -102
  153. package/docs/classes/Polygon.md +0 -101
  154. package/docs/classes/Query.md +0 -227
  155. package/docs/classes/RawError.md +0 -351
  156. package/docs/classes/RawQuery.md +0 -224
  157. package/docs/classes/Request.md +0 -321
  158. package/docs/classes/Response.md +0 -242
  159. package/docs/classes/ResponseData.md +0 -144
  160. package/docs/classes/ServiceProvider.md +0 -296
  161. package/docs/classes/ServiceResponse.md +0 -89
  162. package/docs/classes/SetSessionVariableQuery.md +0 -207
  163. package/docs/classes/StormError.md +0 -343
  164. package/docs/classes/TemporaryTableQuery.md +0 -213
  165. package/docs/classes/Token.md +0 -43
  166. package/docs/classes/TokenManager.md +0 -105
  167. package/docs/classes/Transaction.md +0 -161
  168. package/docs/classes/UnauthorizedAccessError.md +0 -341
  169. package/docs/enums/ErrorCode.md +0 -107
  170. package/docs/enums/ExitCode.md +0 -30
  171. package/docs/enums/HTTPMethod.md +0 -52
  172. package/docs/enums/IsolationLevel.md +0 -52
  173. package/docs/enums/JWTError.md +0 -30
  174. package/docs/enums/StatusCode.md +0 -536
  175. package/docs/interfaces/IAdditionalErrorDetails.md +0 -7
  176. package/docs/interfaces/IAuthTokenData.md +0 -41
  177. package/docs/interfaces/IConfig.md +0 -112
  178. package/docs/interfaces/IDatabaseConfig.md +0 -80
  179. package/docs/interfaces/IDatabaseConnection.md +0 -262
  180. package/docs/interfaces/IErrorResponse.md +0 -63
  181. package/docs/interfaces/IFormData.md +0 -30
  182. package/docs/interfaces/IHandler.md +0 -31
  183. package/docs/interfaces/IInsertQueryResult.md +0 -41
  184. package/docs/interfaces/IJWTVerifyOptions.md +0 -19
  185. package/docs/interfaces/IParameterMap.md +0 -7
  186. package/docs/interfaces/IQueryable.md +0 -119
  187. package/docs/interfaces/IRequestResponse.md +0 -37
  188. package/docs/interfaces/IServiceHeaders.md +0 -7
  189. package/docs/interfaces/ISetSessionVariableQueryInput.md +0 -30
  190. package/docs/interfaces/ITemporaryTableQueryInput.md +0 -30
  191. package/docs/interfaces/IUpdateQueryResult.md +0 -30
  192. package/docs/interfaces/formidable.EmitData.md +0 -54
  193. package/docs/interfaces/formidable.EventData.md +0 -87
  194. package/docs/interfaces/formidable.Fields.md +0 -9
  195. package/docs/interfaces/formidable.File.md +0 -131
  196. package/docs/interfaces/formidable.FileJSON.md +0 -151
  197. package/docs/interfaces/formidable.Files.md +0 -9
  198. package/docs/interfaces/formidable.Options.md +0 -225
  199. package/docs/interfaces/formidable.Part.md +0 -793
  200. package/docs/modules/formidable.md +0 -122
  201. package/lib/DumpStream.d.ts +0 -6
  202. package/lib/DumpStream.js +0 -28
  203. package/lib/DumpStream.js.map +0 -1
  204. package/src/DumpStream.ts +0 -28
@@ -1,314 +0,0 @@
1
- [@breautek/storm](../README.md) / MySQLDatabase
2
-
3
- # Class: MySQLDatabase
4
-
5
- ## Hierarchy
6
-
7
- - [`Database`](Database.md)<`MySQL.PoolConfig`, `MySQL.PoolConnection`\>
8
-
9
- ↳ **`MySQLDatabase`**
10
-
11
- ## Table of contents
12
-
13
- ### Constructors
14
-
15
- - [constructor](MySQLDatabase.md#constructor)
16
-
17
- ### Methods
18
-
19
- - [\_addNode](MySQLDatabase.md#_addnode)
20
- - [\_destroy](MySQLDatabase.md#_destroy)
21
- - [\_getConnection](MySQLDatabase.md#_getconnection)
22
- - [\_removeNode](MySQLDatabase.md#_removenode)
23
- - [addMaster](MySQLDatabase.md#addmaster)
24
- - [addSlave](MySQLDatabase.md#addslave)
25
- - [destroy](MySQLDatabase.md#destroy)
26
- - [escape](MySQLDatabase.md#escape)
27
- - [getConnection](MySQLDatabase.md#getconnection)
28
- - [removeMaster](MySQLDatabase.md#removemaster)
29
- - [removeSlave](MySQLDatabase.md#removeslave)
30
- - [escape](MySQLDatabase.md#escape-1)
31
-
32
- ## Constructors
33
-
34
- ### constructor
35
-
36
- • **new MySQLDatabase**()
37
-
38
- #### Overrides
39
-
40
- [Database](Database.md).[constructor](Database.md#constructor)
41
-
42
- #### Defined in
43
-
44
- [src/MySQLDatabase.ts:27](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLDatabase.ts#L27)
45
-
46
- ## Methods
47
-
48
- ### \_addNode
49
-
50
- ▸ `Protected` **_addNode**(`nodeID`, `config`): `void`
51
-
52
- #### Parameters
53
-
54
- | Name | Type |
55
- | :------ | :------ |
56
- | `nodeID` | `string` |
57
- | `config` | `PoolConfig` |
58
-
59
- #### Returns
60
-
61
- `void`
62
-
63
- #### Overrides
64
-
65
- [Database](Database.md).[_addNode](Database.md#_addnode)
66
-
67
- #### Defined in
68
-
69
- [src/MySQLDatabase.ts:49](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLDatabase.ts#L49)
70
-
71
- ___
72
-
73
- ### \_destroy
74
-
75
- ▸ `Protected` **_destroy**(): `Promise`<`void`\>
76
-
77
- #### Returns
78
-
79
- `Promise`<`void`\>
80
-
81
- #### Overrides
82
-
83
- [Database](Database.md).[_destroy](Database.md#_destroy)
84
-
85
- #### Defined in
86
-
87
- [src/MySQLDatabase.ts:59](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLDatabase.ts#L59)
88
-
89
- ___
90
-
91
- ### \_getConnection
92
-
93
- ▸ `Protected` **_getConnection**(`query`, `requireWriteAccess`): `Promise`<[`MySQLConnection`](MySQLConnection.md)\>
94
-
95
- #### Parameters
96
-
97
- | Name | Type |
98
- | :------ | :------ |
99
- | `query` | `string` |
100
- | `requireWriteAccess` | `boolean` |
101
-
102
- #### Returns
103
-
104
- `Promise`<[`MySQLConnection`](MySQLConnection.md)\>
105
-
106
- #### Overrides
107
-
108
- [Database](Database.md).[_getConnection](Database.md#_getconnection)
109
-
110
- #### Defined in
111
-
112
- [src/MySQLDatabase.ts:72](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLDatabase.ts#L72)
113
-
114
- ___
115
-
116
- ### \_removeNode
117
-
118
- ▸ `Protected` **_removeNode**(`nodeID`): `void`
119
-
120
- #### Parameters
121
-
122
- | Name | Type |
123
- | :------ | :------ |
124
- | `nodeID` | `string` |
125
-
126
- #### Returns
127
-
128
- `void`
129
-
130
- #### Overrides
131
-
132
- [Database](Database.md).[_removeNode](Database.md#_removenode)
133
-
134
- #### Defined in
135
-
136
- [src/MySQLDatabase.ts:54](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLDatabase.ts#L54)
137
-
138
- ___
139
-
140
- ### addMaster
141
-
142
- ▸ **addMaster**(`config`): `void`
143
-
144
- #### Parameters
145
-
146
- | Name | Type |
147
- | :------ | :------ |
148
- | `config` | `PoolConfig` |
149
-
150
- #### Returns
151
-
152
- `void`
153
-
154
- #### Inherited from
155
-
156
- [Database](Database.md).[addMaster](Database.md#addmaster)
157
-
158
- #### Defined in
159
-
160
- [src/Database.ts:31](https://github.com/breautek/storm/blob/3dcafe4/src/Database.ts#L31)
161
-
162
- ___
163
-
164
- ### addSlave
165
-
166
- ▸ **addSlave**(`slaveID`, `config`): `string`
167
-
168
- #### Parameters
169
-
170
- | Name | Type |
171
- | :------ | :------ |
172
- | `slaveID` | `string` |
173
- | `config` | `PoolConfig` |
174
-
175
- #### Returns
176
-
177
- `string`
178
-
179
- #### Inherited from
180
-
181
- [Database](Database.md).[addSlave](Database.md#addslave)
182
-
183
- #### Defined in
184
-
185
- [src/Database.ts:45](https://github.com/breautek/storm/blob/3dcafe4/src/Database.ts#L45)
186
-
187
- ___
188
-
189
- ### destroy
190
-
191
- ▸ **destroy**(): `Promise`<`void`\>
192
-
193
- #### Returns
194
-
195
- `Promise`<`void`\>
196
-
197
- #### Inherited from
198
-
199
- [Database](Database.md).[destroy](Database.md#destroy)
200
-
201
- #### Defined in
202
-
203
- [src/Database.ts:77](https://github.com/breautek/storm/blob/3dcafe4/src/Database.ts#L77)
204
-
205
- ___
206
-
207
- ### escape
208
-
209
- ▸ **escape**(`value`): `string`
210
-
211
- #### Parameters
212
-
213
- | Name | Type |
214
- | :------ | :------ |
215
- | `value` | `any` |
216
-
217
- #### Returns
218
-
219
- `string`
220
-
221
- #### Overrides
222
-
223
- [Database](Database.md).[escape](Database.md#escape)
224
-
225
- #### Defined in
226
-
227
- [src/MySQLDatabase.ts:40](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLDatabase.ts#L40)
228
-
229
- ___
230
-
231
- ### getConnection
232
-
233
- ▸ **getConnection**(`requireWriteAccess?`, `nodeID?`): `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`PoolConnection`\>\>
234
-
235
- #### Parameters
236
-
237
- | Name | Type | Default value |
238
- | :------ | :------ | :------ |
239
- | `requireWriteAccess` | `boolean` | `false` |
240
- | `nodeID?` | `string` | `undefined` |
241
-
242
- #### Returns
243
-
244
- `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`PoolConnection`\>\>
245
-
246
- #### Inherited from
247
-
248
- [Database](Database.md).[getConnection](Database.md#getconnection)
249
-
250
- #### Defined in
251
-
252
- [src/Database.ts:64](https://github.com/breautek/storm/blob/3dcafe4/src/Database.ts#L64)
253
-
254
- ___
255
-
256
- ### removeMaster
257
-
258
- ▸ **removeMaster**(): `void`
259
-
260
- #### Returns
261
-
262
- `void`
263
-
264
- #### Inherited from
265
-
266
- [Database](Database.md).[removeMaster](Database.md#removemaster)
267
-
268
- #### Defined in
269
-
270
- [src/Database.ts:40](https://github.com/breautek/storm/blob/3dcafe4/src/Database.ts#L40)
271
-
272
- ___
273
-
274
- ### removeSlave
275
-
276
- ▸ **removeSlave**(`slaveID`): `void`
277
-
278
- #### Parameters
279
-
280
- | Name | Type |
281
- | :------ | :------ |
282
- | `slaveID` | `string` |
283
-
284
- #### Returns
285
-
286
- `void`
287
-
288
- #### Inherited from
289
-
290
- [Database](Database.md).[removeSlave](Database.md#removeslave)
291
-
292
- #### Defined in
293
-
294
- [src/Database.ts:54](https://github.com/breautek/storm/blob/3dcafe4/src/Database.ts#L54)
295
-
296
- ___
297
-
298
- ### escape
299
-
300
- ▸ `Static` **escape**(`value`): `string`
301
-
302
- #### Parameters
303
-
304
- | Name | Type |
305
- | :------ | :------ |
306
- | `value` | `any` |
307
-
308
- #### Returns
309
-
310
- `string`
311
-
312
- #### Defined in
313
-
314
- [src/MySQLDatabase.ts:45](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLDatabase.ts#L45)
@@ -1,341 +0,0 @@
1
- [@breautek/storm](../README.md) / NotImplementedError
2
-
3
- # Class: NotImplementedError
4
-
5
- ## Hierarchy
6
-
7
- - [`StormError`](StormError.md)<`INotImplementedErrorOptions`\>
8
-
9
- ↳ **`NotImplementedError`**
10
-
11
- ## Table of contents
12
-
13
- ### Constructors
14
-
15
- - [constructor](NotImplementedError.md#constructor)
16
-
17
- ### Properties
18
-
19
- - [message](NotImplementedError.md#message)
20
- - [name](NotImplementedError.md#name)
21
- - [stack](NotImplementedError.md#stack)
22
- - [prepareStackTrace](NotImplementedError.md#preparestacktrace)
23
- - [stackTraceLimit](NotImplementedError.md#stacktracelimit)
24
-
25
- ### Methods
26
-
27
- - [getCode](NotImplementedError.md#getcode)
28
- - [getErrorResponse](NotImplementedError.md#geterrorresponse)
29
- - [getExitCode](NotImplementedError.md#getexitcode)
30
- - [getHTTPCode](NotImplementedError.md#gethttpcode)
31
- - [getLocaleCode](NotImplementedError.md#getlocalecode)
32
- - [getLocaleParameters](NotImplementedError.md#getlocaleparameters)
33
- - [getMessage](NotImplementedError.md#getmessage)
34
- - [getPrivateDetails](NotImplementedError.md#getprivatedetails)
35
- - [getPublicDetails](NotImplementedError.md#getpublicdetails)
36
- - [captureStackTrace](NotImplementedError.md#capturestacktrace)
37
-
38
- ## Constructors
39
-
40
- ### constructor
41
-
42
- • **new NotImplementedError**(`method`)
43
-
44
- #### Parameters
45
-
46
- | Name | Type |
47
- | :------ | :------ |
48
- | `method` | [`HTTPMethod`](../enums/HTTPMethod.md) |
49
-
50
- #### Overrides
51
-
52
- [StormError](StormError.md).[constructor](StormError.md#constructor)
53
-
54
- #### Defined in
55
-
56
- [src/NotImplementedError.ts:27](https://github.com/breautek/storm/blob/3dcafe4/src/NotImplementedError.ts#L27)
57
-
58
- ## Properties
59
-
60
- ### message
61
-
62
- • **message**: `string`
63
-
64
- #### Inherited from
65
-
66
- [StormError](StormError.md).[message](StormError.md#message)
67
-
68
- #### Defined in
69
-
70
- node_modules/typescript/lib/lib.es5.d.ts:1054
71
-
72
- ___
73
-
74
- ### name
75
-
76
- • **name**: `string`
77
-
78
- #### Inherited from
79
-
80
- [StormError](StormError.md).[name](StormError.md#name)
81
-
82
- #### Defined in
83
-
84
- node_modules/typescript/lib/lib.es5.d.ts:1053
85
-
86
- ___
87
-
88
- ### stack
89
-
90
- • `Optional` **stack**: `string`
91
-
92
- #### Inherited from
93
-
94
- [StormError](StormError.md).[stack](StormError.md#stack)
95
-
96
- #### Defined in
97
-
98
- node_modules/typescript/lib/lib.es5.d.ts:1055
99
-
100
- ___
101
-
102
- ### prepareStackTrace
103
-
104
- ▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
105
-
106
- #### Type declaration
107
-
108
- ▸ (`err`, `stackTraces`): `any`
109
-
110
- Optional override for formatting stack traces
111
-
112
- **`See`**
113
-
114
- https://v8.dev/docs/stack-trace-api#customizing-stack-traces
115
-
116
- ##### Parameters
117
-
118
- | Name | Type |
119
- | :------ | :------ |
120
- | `err` | `Error` |
121
- | `stackTraces` | `CallSite`[] |
122
-
123
- ##### Returns
124
-
125
- `any`
126
-
127
- #### Inherited from
128
-
129
- [StormError](StormError.md).[prepareStackTrace](StormError.md#preparestacktrace)
130
-
131
- #### Defined in
132
-
133
- node_modules/@types/node/globals.d.ts:11
134
-
135
- ___
136
-
137
- ### stackTraceLimit
138
-
139
- ▪ `Static` **stackTraceLimit**: `number`
140
-
141
- #### Inherited from
142
-
143
- [StormError](StormError.md).[stackTraceLimit](StormError.md#stacktracelimit)
144
-
145
- #### Defined in
146
-
147
- node_modules/@types/node/globals.d.ts:13
148
-
149
- ## Methods
150
-
151
- ### getCode
152
-
153
- ▸ **getCode**(): [`ErrorCode`](../enums/ErrorCode.md)
154
-
155
- #### Returns
156
-
157
- [`ErrorCode`](../enums/ErrorCode.md)
158
-
159
- #### Overrides
160
-
161
- [StormError](StormError.md).[getCode](StormError.md#getcode)
162
-
163
- #### Defined in
164
-
165
- [src/NotImplementedError.ts:38](https://github.com/breautek/storm/blob/3dcafe4/src/NotImplementedError.ts#L38)
166
-
167
- ___
168
-
169
- ### getErrorResponse
170
-
171
- ▸ **getErrorResponse**(): [`IErrorResponse`](../interfaces/IErrorResponse.md)
172
-
173
- #### Returns
174
-
175
- [`IErrorResponse`](../interfaces/IErrorResponse.md)
176
-
177
- #### Inherited from
178
-
179
- [StormError](StormError.md).[getErrorResponse](StormError.md#geterrorresponse)
180
-
181
- #### Defined in
182
-
183
- [src/StormError.ts:76](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L76)
184
-
185
- ___
186
-
187
- ### getExitCode
188
-
189
- ▸ **getExitCode**(): [`ExitCode`](../enums/ExitCode.md)
190
-
191
- #### Returns
192
-
193
- [`ExitCode`](../enums/ExitCode.md)
194
-
195
- #### Inherited from
196
-
197
- [StormError](StormError.md).[getExitCode](StormError.md#getexitcode)
198
-
199
- #### Defined in
200
-
201
- [src/StormError.ts:97](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L97)
202
-
203
- ___
204
-
205
- ### getHTTPCode
206
-
207
- ▸ **getHTTPCode**(): [`StatusCode`](../enums/StatusCode.md)
208
-
209
- #### Returns
210
-
211
- [`StatusCode`](../enums/StatusCode.md)
212
-
213
- #### Overrides
214
-
215
- [StormError](StormError.md).[getHTTPCode](StormError.md#gethttpcode)
216
-
217
- #### Defined in
218
-
219
- [src/NotImplementedError.ts:42](https://github.com/breautek/storm/blob/3dcafe4/src/NotImplementedError.ts#L42)
220
-
221
- ___
222
-
223
- ### getLocaleCode
224
-
225
- ▸ **getLocaleCode**(): `string`
226
-
227
- #### Returns
228
-
229
- `string`
230
-
231
- #### Overrides
232
-
233
- [StormError](StormError.md).[getLocaleCode](StormError.md#getlocalecode)
234
-
235
- #### Defined in
236
-
237
- [src/NotImplementedError.ts:46](https://github.com/breautek/storm/blob/3dcafe4/src/NotImplementedError.ts#L46)
238
-
239
- ___
240
-
241
- ### getLocaleParameters
242
-
243
- ▸ **getLocaleParameters**(): `Record`<`string`, `string`\>
244
-
245
- #### Returns
246
-
247
- `Record`<`string`, `string`\>
248
-
249
- #### Overrides
250
-
251
- [StormError](StormError.md).[getLocaleParameters](StormError.md#getlocaleparameters)
252
-
253
- #### Defined in
254
-
255
- [src/NotImplementedError.ts:50](https://github.com/breautek/storm/blob/3dcafe4/src/NotImplementedError.ts#L50)
256
-
257
- ___
258
-
259
- ### getMessage
260
-
261
- ▸ **getMessage**(): `string`
262
-
263
- #### Returns
264
-
265
- `string`
266
-
267
- #### Overrides
268
-
269
- [StormError](StormError.md).[getMessage](StormError.md#getmessage)
270
-
271
- #### Defined in
272
-
273
- [src/NotImplementedError.ts:33](https://github.com/breautek/storm/blob/3dcafe4/src/NotImplementedError.ts#L33)
274
-
275
- ___
276
-
277
- ### getPrivateDetails
278
-
279
- ▸ **getPrivateDetails**(): `INotImplementedErrorOptions`
280
-
281
- Private details are only logged to the server log.
282
- They are kept secret from the client.
283
-
284
- #### Returns
285
-
286
- `INotImplementedErrorOptions`
287
-
288
- #### Inherited from
289
-
290
- [StormError](StormError.md).[getPrivateDetails](StormError.md#getprivatedetails)
291
-
292
- #### Defined in
293
-
294
- [src/StormError.ts:68](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L68)
295
-
296
- ___
297
-
298
- ### getPublicDetails
299
-
300
- ▸ **getPublicDetails**(): [`IAdditionalErrorDetails`](../interfaces/IAdditionalErrorDetails.md)
301
-
302
- Sends details to the client.
303
-
304
- #### Returns
305
-
306
- [`IAdditionalErrorDetails`](../interfaces/IAdditionalErrorDetails.md)
307
-
308
- #### Inherited from
309
-
310
- [StormError](StormError.md).[getPublicDetails](StormError.md#getpublicdetails)
311
-
312
- #### Defined in
313
-
314
- [src/StormError.ts:60](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L60)
315
-
316
- ___
317
-
318
- ### captureStackTrace
319
-
320
- ▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
321
-
322
- Create .stack property on a target object
323
-
324
- #### Parameters
325
-
326
- | Name | Type |
327
- | :------ | :------ |
328
- | `targetObject` | `object` |
329
- | `constructorOpt?` | `Function` |
330
-
331
- #### Returns
332
-
333
- `void`
334
-
335
- #### Inherited from
336
-
337
- [StormError](StormError.md).[captureStackTrace](StormError.md#capturestacktrace)
338
-
339
- #### Defined in
340
-
341
- node_modules/@types/node/globals.d.ts:4