decord/source/errors/APIError.tsx

33 lines
979 B
TypeScript
Raw Normal View History

// Module ID: 4541
// Function ID: 4542
// Name: APIError
// Dependencies: [1074, 1271, 1115, 2]
2026-07-20 16:05:17 +00:00
// Module 4541 (APIError)
import Constants from "Constants" /* 1074 */;
import util from "util" /* 1115 */;
import HTTPUtils from "HTTPUtils" /* 1271 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const Links = Constants.Links;
const V8APIError = HTTPUtils.V8APIError;
2026-07-29 08:29:29 +00:00
const prototype = function APIErrorWithDefaultMessage(arg0, arg1) {
if (null != arg1) {
const intl2 = util.intl;
const obj2 = { statusPageURL: Links.STATUS, details: null };
2026-07-29 08:29:29 +00:00
const _HermesInternal = HermesInternal;
obj2.details = "" + arg1;
intl2.formatToPlainString(util.t.aKRa0Q, obj2);
2026-07-29 08:29:29 +00:00
} else {
const intl = util.intl;
const obj = { statusPageURL: Links.STATUS };
intl.formatToPlainString(util.t.aTVNes, obj);
2026-07-20 16:05:17 +00:00
}
return new tmp();
2026-07-29 08:29:29 +00:00
}.prototype;
class prototype extends V8APIError {
2026-07-20 16:05:17 +00:00
}
const result = size.fileFinishedImporting("errors/APIError.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default prototype;