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

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.
@@ -16749,7 +16749,6 @@ class BentleyError extends Error {
16749
16749
  case GeoServiceStatus.CSMapError: return "CSMap error";
16750
16750
  case GeoServiceStatus.Pending: return "Pending";
16751
16751
  case RealityDataStatus.InvalidData: return "Invalid or unknown data";
16752
- case IModelStatus.Success:
16753
16752
  case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_OK:
16754
16753
  case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ROW:
16755
16754
  case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_DONE:
@@ -19411,15 +19410,12 @@ class Logger {
19411
19410
  const stack = Logger.logExceptionCallstacks ? `\n${_BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorStack(err)}` : "";
19412
19411
  return _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMessage(err) + stack;
19413
19412
  }
19414
- /** Log the specified exception. The special "ExceptionType" property will be added as metadata,
19415
- * in addition to any other metadata that may be supplied by the caller, unless the
19416
- * metadata supplied by the caller already includes this property.
19413
+ /** Log the specified exception. The special "ExceptionType" property will be added as metadata.
19417
19414
  * @param category The category of the message.
19418
19415
  * @param err The exception object.
19419
19416
  * @param log The logger output function to use - defaults to Logger.logError
19420
- * @param metaData Optional data for the message
19421
19417
  */
19422
- static logException(category, err, log = (_category, message) => Logger.logError(_category, message)) {
19418
+ static logException(category, err, log = (_category, message, metaData) => Logger.logError(_category, message, metaData)) {
19423
19419
  log(category, Logger.getExceptionMessage(err), () => {
19424
19420
  return { ..._BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMetadata(err), exceptionType: err.constructor.name };
19425
19421
  });