2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 6304
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 56718
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getUnderlyingIOSExceptionRecursively
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [6305, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getUnderlyingIOSError, serializeError
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 6304 (getUnderlyingIOSExceptionRecursively)
|
2026-07-20 16:05:17 +00:00
|
|
|
function getUnderlyingIOSExceptionRecursively(NSUnderlyingError) {
|
|
|
|
|
if (null != NSUnderlyingError.userInfo.NSUnderlyingError) {
|
|
|
|
|
const tmp2 = getUnderlyingIOSExceptionRecursively(NSUnderlyingError.userInfo.NSUnderlyingError);
|
|
|
|
|
if (null != tmp2) {
|
|
|
|
|
return tmp2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return NSUnderlyingError.userInfo.NSLocalizedDescription;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("set").fileFinishedImporting("utils/ErrorUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const getUnderlyingIOSError = function getUnderlyingIOSError(code) {
|
|
|
|
|
const tmp = getUnderlyingIOSExceptionRecursively(code);
|
|
|
|
|
let tmp2 = null;
|
|
|
|
|
if (null != tmp) {
|
|
|
|
|
tmp2 = tmp;
|
|
|
|
|
}
|
|
|
|
|
return tmp2;
|
|
|
|
|
};
|
|
|
|
|
export const serializeError = function serializeError(arg0) {
|
|
|
|
|
let error = arg0;
|
|
|
|
|
if (!Boolean(arg0)) {
|
|
|
|
|
const _Error = Error;
|
|
|
|
|
error = new Error("unknown error");
|
|
|
|
|
}
|
|
|
|
|
let error1 = error;
|
|
|
|
|
if ("object" !== typeof error) {
|
|
|
|
|
const _Error2 = Error;
|
|
|
|
|
const _String = String;
|
|
|
|
|
error1 = new Error(String(error));
|
|
|
|
|
}
|
2026-07-25 08:10:48 +00:00
|
|
|
return JSON.stringify(require(6305) /* BAGGAGE_HEADER_NAME */.normalizeToSize(error1));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|