36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
// Module ID: 4462
|
|
// Function ID: 4463
|
|
// Name: prototype
|
|
// Dependencies: [1074, 1272, 1114, 2]
|
|
|
|
// Module 4462 (prototype)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 1074 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1114 */;
|
|
import sendRequest from "sendRequest" /* 1272 */;
|
|
|
|
const Links = ME.Links;
|
|
const V8APIError = sendRequest.V8APIError;
|
|
const prototype = function APIErrorWithDefaultMessage(arg0, arg1) {
|
|
if (null != arg1) {
|
|
const intl2 = getSystemLocale.intl;
|
|
let obj = { statusPageURL: null, details: null };
|
|
obj[0] = Links.STATUS;
|
|
const _HermesInternal = HermesInternal;
|
|
obj[1] = "" + arg1;
|
|
intl2.formatToPlainString(getSystemLocale.t.aKRa0Q, obj);
|
|
} else {
|
|
const intl = getSystemLocale.intl;
|
|
obj = { statusPageURL: null };
|
|
obj[0] = Links.STATUS;
|
|
intl.formatToPlainString(getSystemLocale.t.aTVNes, obj);
|
|
}
|
|
tmp = new tmp();
|
|
// ThrowIfThisInitialized (0x7c)
|
|
return tmp;
|
|
}.prototype;
|
|
class prototype extends V8APIError {
|
|
}
|
|
const result = set.fileFinishedImporting("errors/APIError.tsx");
|
|
|
|
export default prototype;
|