@itwin/core-i18n 4.5.0-dev.21 → 4.5.0-dev.23

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.
@@ -16216,6 +16216,7 @@ var IModelStatus;
16216
16216
  IModelStatus[IModelStatus["NotRegistered"] = 65605] = "NotRegistered";
16217
16217
  IModelStatus[IModelStatus["FunctionNotFound"] = 65606] = "FunctionNotFound";
16218
16218
  IModelStatus[IModelStatus["NoActiveCommand"] = 65607] = "NoActiveCommand";
16219
+ IModelStatus[IModelStatus["Aborted"] = 65608] = "Aborted";
16219
16220
  })(IModelStatus || (IModelStatus = {}));
16220
16221
  /** Error statuses produced by various briefcase operations, typically encountered as the `errorNumber` of an [IModelError]($common).
16221
16222
  * @public
@@ -20586,7 +20587,10 @@ class StatusCategory {
20586
20587
  return category;
20587
20588
  }
20588
20589
  }
20589
- return lookupCategory(error);
20590
+ const errorNumber = error.errorNumber;
20591
+ if (typeof errorNumber === "number")
20592
+ return lookupHttpStatusCategory(errorNumber);
20593
+ return new UnknownError();
20590
20594
  }
20591
20595
  }
20592
20596
  StatusCategory.handlers = new Set();
@@ -20822,8 +20826,10 @@ class UnknownError extends HTTP.InternalServerError {
20822
20826
  }
20823
20827
  class NotImplemented extends HTTP.NotImplemented {
20824
20828
  }
20825
- function lookupCategory(error) {
20826
- switch (error.errorNumber) {
20829
+ class Aborted extends HTTP.BadRequest {
20830
+ }
20831
+ function lookupHttpStatusCategory(statusCode) {
20832
+ switch (statusCode) {
20827
20833
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.SUCCESS: return new Success();
20828
20834
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR: return new UnknownError();
20829
20835
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.Success: return new Success();
@@ -20897,6 +20903,7 @@ function lookupCategory(error) {
20897
20903
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.NotRegistered: return new NotImplemented();
20898
20904
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.FunctionNotFound: return new NotImplemented();
20899
20905
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.NoActiveCommand: return new StateViolation();
20906
+ case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.Aborted: return new Aborted();
20900
20907
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BriefcaseStatus.CannotAcquire: return new OperationFailed();
20901
20908
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BriefcaseStatus.CannotDownload: return new OperationFailed();
20902
20909
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BriefcaseStatus.CannotUpload: return new OperationFailed();