throw {
//http error: it is optional, only required if the called is a lambda function
...HTTPERROR_400,
//type: suggest to have it for every error
type: "ERROR_API_ERROR",
//source: keep the module name and function name
source: "auth.signIn",
//message: provide human readable error message. this optional, we should leave the caller to handle it with proper message that may also support multi-langurage
message: "",
//detail: provide helpful data to help understand the error better, it can have any data in it.
detail: {
reason: "",
...anything
},
//error: this is the inner error.
error
};
encodeagent-helper-lambda
1.0.156 • Public • PublishedVersions
Current Tags
- VersionDownloads (Last 7 Days)
- Tag
- 1.0.1562
- latest
Version History
- VersionDownloads (Last 7 Days)
- Published
- 1.0.1562
- 1.0.1552
- 1.0.1543
- 1.0.1533
- 1.0.1523
- 1.0.1513
- 1.0.1503
- 1.0.1493
- 1.0.1483
- 1.0.1470
- 1.0.1461
- 1.0.1450
- 1.0.1440
- 1.0.1430
- 1.0.1421
- 1.0.1412
- 1.0.1402
- 1.0.1392
- 1.0.1382
- 1.0.1370
- 1.0.1362
- 1.0.1350
- 1.0.1342
- 1.0.1330
- 1.0.1322
- 1.0.1312
- 1.0.1302
- 1.0.1292
- 1.0.1280
- 1.0.1270
- 1.0.1260
- 1.0.1252
- 1.0.1241
- 1.0.1232
- 1.0.1222
- 1.0.1210
- 1.0.1200
- 1.0.1190
- 1.0.1182
- 1.0.1172
- 1.0.1162
- 1.0.1152
- 1.0.1142
- 1.0.1132
- 1.0.1122
- 1.0.1112
- 1.0.1102
- 1.0.1092
- 1.0.1083
- 1.0.1072
- 1.0.1062
- 1.0.1052
- 1.0.1042
- 1.0.1032
- 1.0.1022
- 1.0.1012
- 1.0.1003
- 1.0.992
- 1.0.982
Package Sidebar
Install
npm i encodeagent-helper-lambda
Weekly Downloads
98
Version
1.0.156
License
PRIVATE
Unpacked Size
510 kB
Total Files
90