@aws-sdk/client-dataexchange 3.180.0 → 3.183.0
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.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +35 -29
- package/dist-es/DataExchange.js +118 -125
- package/dist-es/DataExchangeClient.js +22 -28
- package/dist-es/commands/CancelJobCommand.js +22 -29
- package/dist-es/commands/CreateDataSetCommand.js +21 -28
- package/dist-es/commands/CreateEventActionCommand.js +21 -28
- package/dist-es/commands/CreateJobCommand.js +21 -28
- package/dist-es/commands/CreateRevisionCommand.js +21 -28
- package/dist-es/commands/DeleteAssetCommand.js +22 -29
- package/dist-es/commands/DeleteDataSetCommand.js +22 -29
- package/dist-es/commands/DeleteEventActionCommand.js +22 -29
- package/dist-es/commands/DeleteRevisionCommand.js +22 -29
- package/dist-es/commands/GetAssetCommand.js +21 -28
- package/dist-es/commands/GetDataSetCommand.js +21 -28
- package/dist-es/commands/GetEventActionCommand.js +21 -28
- package/dist-es/commands/GetJobCommand.js +21 -28
- package/dist-es/commands/GetRevisionCommand.js +21 -28
- package/dist-es/commands/ListDataSetRevisionsCommand.js +21 -28
- package/dist-es/commands/ListDataSetsCommand.js +21 -28
- package/dist-es/commands/ListEventActionsCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListRevisionAssetsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/RevokeRevisionCommand.js +21 -28
- package/dist-es/commands/SendApiAssetCommand.js +21 -28
- package/dist-es/commands/StartJobCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateAssetCommand.js +21 -28
- package/dist-es/commands/UpdateDataSetCommand.js +21 -28
- package/dist-es/commands/UpdateEventActionCommand.js +21 -28
- package/dist-es/commands/UpdateRevisionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DataExchangeServiceException.js +5 -10
- package/dist-es/models/models_0.js +361 -182
- package/dist-es/pagination/ListDataSetRevisionsPaginator.js +25 -68
- package/dist-es/pagination/ListDataSetsPaginator.js +25 -68
- package/dist-es/pagination/ListEventActionsPaginator.js +25 -68
- package/dist-es/pagination/ListJobsPaginator.js +25 -68
- package/dist-es/pagination/ListRevisionAssetsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2541 -3349
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-dataexchange
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-dataexchange
|
|
@@ -642,7 +642,7 @@ exports.deserializeAws_restJson1CancelJobCommand = deserializeAws_restJson1Cance
|
|
|
642
642
|
const deserializeAws_restJson1CancelJobCommandError = async (output, context) => {
|
|
643
643
|
const parsedOutput = {
|
|
644
644
|
...output,
|
|
645
|
-
body: await
|
|
645
|
+
body: await parseErrorBody(output.body, context),
|
|
646
646
|
};
|
|
647
647
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
648
|
switch (errorCode) {
|
|
@@ -718,7 +718,7 @@ exports.deserializeAws_restJson1CreateDataSetCommand = deserializeAws_restJson1C
|
|
|
718
718
|
const deserializeAws_restJson1CreateDataSetCommandError = async (output, context) => {
|
|
719
719
|
const parsedOutput = {
|
|
720
720
|
...output,
|
|
721
|
-
body: await
|
|
721
|
+
body: await parseErrorBody(output.body, context),
|
|
722
722
|
};
|
|
723
723
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
724
|
switch (errorCode) {
|
|
@@ -779,7 +779,7 @@ exports.deserializeAws_restJson1CreateEventActionCommand = deserializeAws_restJs
|
|
|
779
779
|
const deserializeAws_restJson1CreateEventActionCommandError = async (output, context) => {
|
|
780
780
|
const parsedOutput = {
|
|
781
781
|
...output,
|
|
782
|
-
body: await
|
|
782
|
+
body: await parseErrorBody(output.body, context),
|
|
783
783
|
};
|
|
784
784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
785
|
switch (errorCode) {
|
|
@@ -846,7 +846,7 @@ exports.deserializeAws_restJson1CreateJobCommand = deserializeAws_restJson1Creat
|
|
|
846
846
|
const deserializeAws_restJson1CreateJobCommandError = async (output, context) => {
|
|
847
847
|
const parsedOutput = {
|
|
848
848
|
...output,
|
|
849
|
-
body: await
|
|
849
|
+
body: await parseErrorBody(output.body, context),
|
|
850
850
|
};
|
|
851
851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
852
|
switch (errorCode) {
|
|
@@ -928,7 +928,7 @@ exports.deserializeAws_restJson1CreateRevisionCommand = deserializeAws_restJson1
|
|
|
928
928
|
const deserializeAws_restJson1CreateRevisionCommandError = async (output, context) => {
|
|
929
929
|
const parsedOutput = {
|
|
930
930
|
...output,
|
|
931
|
-
body: await
|
|
931
|
+
body: await parseErrorBody(output.body, context),
|
|
932
932
|
};
|
|
933
933
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
934
|
switch (errorCode) {
|
|
@@ -971,7 +971,7 @@ exports.deserializeAws_restJson1DeleteAssetCommand = deserializeAws_restJson1Del
|
|
|
971
971
|
const deserializeAws_restJson1DeleteAssetCommandError = async (output, context) => {
|
|
972
972
|
const parsedOutput = {
|
|
973
973
|
...output,
|
|
974
|
-
body: await
|
|
974
|
+
body: await parseErrorBody(output.body, context),
|
|
975
975
|
};
|
|
976
976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
977
|
switch (errorCode) {
|
|
@@ -1017,7 +1017,7 @@ exports.deserializeAws_restJson1DeleteDataSetCommand = deserializeAws_restJson1D
|
|
|
1017
1017
|
const deserializeAws_restJson1DeleteDataSetCommandError = async (output, context) => {
|
|
1018
1018
|
const parsedOutput = {
|
|
1019
1019
|
...output,
|
|
1020
|
-
body: await
|
|
1020
|
+
body: await parseErrorBody(output.body, context),
|
|
1021
1021
|
};
|
|
1022
1022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
1023
|
switch (errorCode) {
|
|
@@ -1063,7 +1063,7 @@ exports.deserializeAws_restJson1DeleteEventActionCommand = deserializeAws_restJs
|
|
|
1063
1063
|
const deserializeAws_restJson1DeleteEventActionCommandError = async (output, context) => {
|
|
1064
1064
|
const parsedOutput = {
|
|
1065
1065
|
...output,
|
|
1066
|
-
body: await
|
|
1066
|
+
body: await parseErrorBody(output.body, context),
|
|
1067
1067
|
};
|
|
1068
1068
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
1069
|
switch (errorCode) {
|
|
@@ -1103,7 +1103,7 @@ exports.deserializeAws_restJson1DeleteRevisionCommand = deserializeAws_restJson1
|
|
|
1103
1103
|
const deserializeAws_restJson1DeleteRevisionCommandError = async (output, context) => {
|
|
1104
1104
|
const parsedOutput = {
|
|
1105
1105
|
...output,
|
|
1106
|
-
body: await
|
|
1106
|
+
body: await parseErrorBody(output.body, context),
|
|
1107
1107
|
};
|
|
1108
1108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
1109
|
switch (errorCode) {
|
|
@@ -1179,7 +1179,7 @@ exports.deserializeAws_restJson1GetAssetCommand = deserializeAws_restJson1GetAss
|
|
|
1179
1179
|
const deserializeAws_restJson1GetAssetCommandError = async (output, context) => {
|
|
1180
1180
|
const parsedOutput = {
|
|
1181
1181
|
...output,
|
|
1182
|
-
body: await
|
|
1182
|
+
body: await parseErrorBody(output.body, context),
|
|
1183
1183
|
};
|
|
1184
1184
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
1185
|
switch (errorCode) {
|
|
@@ -1252,7 +1252,7 @@ exports.deserializeAws_restJson1GetDataSetCommand = deserializeAws_restJson1GetD
|
|
|
1252
1252
|
const deserializeAws_restJson1GetDataSetCommandError = async (output, context) => {
|
|
1253
1253
|
const parsedOutput = {
|
|
1254
1254
|
...output,
|
|
1255
|
-
body: await
|
|
1255
|
+
body: await parseErrorBody(output.body, context),
|
|
1256
1256
|
};
|
|
1257
1257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
1258
|
switch (errorCode) {
|
|
@@ -1310,7 +1310,7 @@ exports.deserializeAws_restJson1GetEventActionCommand = deserializeAws_restJson1
|
|
|
1310
1310
|
const deserializeAws_restJson1GetEventActionCommandError = async (output, context) => {
|
|
1311
1311
|
const parsedOutput = {
|
|
1312
1312
|
...output,
|
|
1313
|
-
body: await
|
|
1313
|
+
body: await parseErrorBody(output.body, context),
|
|
1314
1314
|
};
|
|
1315
1315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
1316
|
switch (errorCode) {
|
|
@@ -1374,7 +1374,7 @@ exports.deserializeAws_restJson1GetJobCommand = deserializeAws_restJson1GetJobCo
|
|
|
1374
1374
|
const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
1375
1375
|
const parsedOutput = {
|
|
1376
1376
|
...output,
|
|
1377
|
-
body: await
|
|
1377
|
+
body: await parseErrorBody(output.body, context),
|
|
1378
1378
|
};
|
|
1379
1379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
1380
|
switch (errorCode) {
|
|
@@ -1450,7 +1450,7 @@ exports.deserializeAws_restJson1GetRevisionCommand = deserializeAws_restJson1Get
|
|
|
1450
1450
|
const deserializeAws_restJson1GetRevisionCommandError = async (output, context) => {
|
|
1451
1451
|
const parsedOutput = {
|
|
1452
1452
|
...output,
|
|
1453
|
-
body: await
|
|
1453
|
+
body: await parseErrorBody(output.body, context),
|
|
1454
1454
|
};
|
|
1455
1455
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
1456
|
switch (errorCode) {
|
|
@@ -1496,7 +1496,7 @@ exports.deserializeAws_restJson1ListDataSetRevisionsCommand = deserializeAws_res
|
|
|
1496
1496
|
const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (output, context) => {
|
|
1497
1497
|
const parsedOutput = {
|
|
1498
1498
|
...output,
|
|
1499
|
-
body: await
|
|
1499
|
+
body: await parseErrorBody(output.body, context),
|
|
1500
1500
|
};
|
|
1501
1501
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
1502
|
switch (errorCode) {
|
|
@@ -1542,7 +1542,7 @@ exports.deserializeAws_restJson1ListDataSetsCommand = deserializeAws_restJson1Li
|
|
|
1542
1542
|
const deserializeAws_restJson1ListDataSetsCommandError = async (output, context) => {
|
|
1543
1543
|
const parsedOutput = {
|
|
1544
1544
|
...output,
|
|
1545
|
-
body: await
|
|
1545
|
+
body: await parseErrorBody(output.body, context),
|
|
1546
1546
|
};
|
|
1547
1547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
1548
|
switch (errorCode) {
|
|
@@ -1588,7 +1588,7 @@ exports.deserializeAws_restJson1ListEventActionsCommand = deserializeAws_restJso
|
|
|
1588
1588
|
const deserializeAws_restJson1ListEventActionsCommandError = async (output, context) => {
|
|
1589
1589
|
const parsedOutput = {
|
|
1590
1590
|
...output,
|
|
1591
|
-
body: await
|
|
1591
|
+
body: await parseErrorBody(output.body, context),
|
|
1592
1592
|
};
|
|
1593
1593
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1594
|
switch (errorCode) {
|
|
@@ -1634,7 +1634,7 @@ exports.deserializeAws_restJson1ListJobsCommand = deserializeAws_restJson1ListJo
|
|
|
1634
1634
|
const deserializeAws_restJson1ListJobsCommandError = async (output, context) => {
|
|
1635
1635
|
const parsedOutput = {
|
|
1636
1636
|
...output,
|
|
1637
|
-
body: await
|
|
1637
|
+
body: await parseErrorBody(output.body, context),
|
|
1638
1638
|
};
|
|
1639
1639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
1640
|
switch (errorCode) {
|
|
@@ -1680,7 +1680,7 @@ exports.deserializeAws_restJson1ListRevisionAssetsCommand = deserializeAws_restJ
|
|
|
1680
1680
|
const deserializeAws_restJson1ListRevisionAssetsCommandError = async (output, context) => {
|
|
1681
1681
|
const parsedOutput = {
|
|
1682
1682
|
...output,
|
|
1683
|
-
body: await
|
|
1683
|
+
body: await parseErrorBody(output.body, context),
|
|
1684
1684
|
};
|
|
1685
1685
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
1686
|
switch (errorCode) {
|
|
@@ -1723,7 +1723,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1723
1723
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1724
1724
|
const parsedOutput = {
|
|
1725
1725
|
...output,
|
|
1726
|
-
body: await
|
|
1726
|
+
body: await parseErrorBody(output.body, context),
|
|
1727
1727
|
};
|
|
1728
1728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
1729
|
const parsedBody = parsedOutput.body;
|
|
@@ -1781,7 +1781,7 @@ exports.deserializeAws_restJson1RevokeRevisionCommand = deserializeAws_restJson1
|
|
|
1781
1781
|
const deserializeAws_restJson1RevokeRevisionCommandError = async (output, context) => {
|
|
1782
1782
|
const parsedOutput = {
|
|
1783
1783
|
...output,
|
|
1784
|
-
body: await
|
|
1784
|
+
body: await parseErrorBody(output.body, context),
|
|
1785
1785
|
};
|
|
1786
1786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
1787
|
switch (errorCode) {
|
|
@@ -1837,7 +1837,7 @@ exports.deserializeAws_restJson1SendApiAssetCommand = deserializeAws_restJson1Se
|
|
|
1837
1837
|
const deserializeAws_restJson1SendApiAssetCommandError = async (output, context) => {
|
|
1838
1838
|
const parsedOutput = {
|
|
1839
1839
|
...output,
|
|
1840
|
-
body: await
|
|
1840
|
+
body: await parseErrorBody(output.body, context),
|
|
1841
1841
|
};
|
|
1842
1842
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
1843
|
switch (errorCode) {
|
|
@@ -1880,7 +1880,7 @@ exports.deserializeAws_restJson1StartJobCommand = deserializeAws_restJson1StartJ
|
|
|
1880
1880
|
const deserializeAws_restJson1StartJobCommandError = async (output, context) => {
|
|
1881
1881
|
const parsedOutput = {
|
|
1882
1882
|
...output,
|
|
1883
|
-
body: await
|
|
1883
|
+
body: await parseErrorBody(output.body, context),
|
|
1884
1884
|
};
|
|
1885
1885
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1886
1886
|
switch (errorCode) {
|
|
@@ -1926,7 +1926,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1926
1926
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1927
1927
|
const parsedOutput = {
|
|
1928
1928
|
...output,
|
|
1929
|
-
body: await
|
|
1929
|
+
body: await parseErrorBody(output.body, context),
|
|
1930
1930
|
};
|
|
1931
1931
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
1932
|
const parsedBody = parsedOutput.body;
|
|
@@ -1951,7 +1951,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1951
1951
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1952
1952
|
const parsedOutput = {
|
|
1953
1953
|
...output,
|
|
1954
|
-
body: await
|
|
1954
|
+
body: await parseErrorBody(output.body, context),
|
|
1955
1955
|
};
|
|
1956
1956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
1957
|
const parsedBody = parsedOutput.body;
|
|
@@ -2006,7 +2006,7 @@ exports.deserializeAws_restJson1UpdateAssetCommand = deserializeAws_restJson1Upd
|
|
|
2006
2006
|
const deserializeAws_restJson1UpdateAssetCommandError = async (output, context) => {
|
|
2007
2007
|
const parsedOutput = {
|
|
2008
2008
|
...output,
|
|
2009
|
-
body: await
|
|
2009
|
+
body: await parseErrorBody(output.body, context),
|
|
2010
2010
|
};
|
|
2011
2011
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2012
2012
|
switch (errorCode) {
|
|
@@ -2082,7 +2082,7 @@ exports.deserializeAws_restJson1UpdateDataSetCommand = deserializeAws_restJson1U
|
|
|
2082
2082
|
const deserializeAws_restJson1UpdateDataSetCommandError = async (output, context) => {
|
|
2083
2083
|
const parsedOutput = {
|
|
2084
2084
|
...output,
|
|
2085
|
-
body: await
|
|
2085
|
+
body: await parseErrorBody(output.body, context),
|
|
2086
2086
|
};
|
|
2087
2087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2088
2088
|
switch (errorCode) {
|
|
@@ -2143,7 +2143,7 @@ exports.deserializeAws_restJson1UpdateEventActionCommand = deserializeAws_restJs
|
|
|
2143
2143
|
const deserializeAws_restJson1UpdateEventActionCommandError = async (output, context) => {
|
|
2144
2144
|
const parsedOutput = {
|
|
2145
2145
|
...output,
|
|
2146
|
-
body: await
|
|
2146
|
+
body: await parseErrorBody(output.body, context),
|
|
2147
2147
|
};
|
|
2148
2148
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
2149
|
switch (errorCode) {
|
|
@@ -2219,7 +2219,7 @@ exports.deserializeAws_restJson1UpdateRevisionCommand = deserializeAws_restJson1
|
|
|
2219
2219
|
const deserializeAws_restJson1UpdateRevisionCommandError = async (output, context) => {
|
|
2220
2220
|
const parsedOutput = {
|
|
2221
2221
|
...output,
|
|
2222
|
-
body: await
|
|
2222
|
+
body: await parseErrorBody(output.body, context),
|
|
2223
2223
|
};
|
|
2224
2224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2225
|
switch (errorCode) {
|
|
@@ -3011,6 +3011,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3011
3011
|
}
|
|
3012
3012
|
return {};
|
|
3013
3013
|
});
|
|
3014
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3015
|
+
var _a;
|
|
3016
|
+
const value = await parseBody(errorBody, context);
|
|
3017
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3018
|
+
return value;
|
|
3019
|
+
};
|
|
3014
3020
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3015
3021
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3016
3022
|
const sanitizeErrorCode = (rawValue) => {
|