bf4f491b17e336d201e5fdc88a265cda3a00d94effb5b4f18c3ff9aa20acb630.json 5.4 KB

1
  1. {"ast":null,"code":"/* eslint-disable @typescript-eslint/naming-convention */\n/**\n * Base error. Due to limitations of typedoc-check and missing documentation\n * in lib.es5.d.ts, cannot extend Error directly for RuntimeError.\n * @ignore\n */\nexport class BaseError extends Error {}\n// See https://stackoverflow.com/questions/12915412/how-do-i-extend-a-host-object-e-g-error-in-typescript\n// and https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work\n// Polyfill for Object.setPrototypeOf if necessary.\nBaseError._setPrototypeOf = Object.setPrototypeOf || ((o, proto) => {\n o.__proto__ = proto;\n return o;\n});\n/* IMP! DO NOT CHANGE THE NUMBERING OF EXISTING ERROR CODES */\n/**\n * Error codes for BaseError\n */\nexport const ErrorCodes = {\n // Mesh errors 0-999\n /** Invalid or empty mesh vertex positions. */\n MeshInvalidPositionsError: 0,\n // Texture errors 1000-1999\n /** Unsupported texture found. */\n UnsupportedTextureError: 1000,\n // GLTFLoader errors 2000-2999\n /** Unexpected magic number found in GLTF file header. */\n GLTFLoaderUnexpectedMagicError: 2000,\n // SceneLoader errors 3000-3999\n /** SceneLoader generic error code. Ideally wraps the inner exception. */\n SceneLoaderError: 3000,\n // File related errors 4000-4999\n /** Load file error */\n LoadFileError: 4000,\n /** Request file error */\n RequestFileError: 4001,\n /** Read file error */\n ReadFileError: 4002\n};\n/**\n * Application runtime error\n */\nexport class RuntimeError extends BaseError {\n /**\n * Creates a new RuntimeError\n * @param message defines the message of the error\n * @param errorCode the error code\n * @param innerError the error that caused the outer error\n */\n constructor(message, errorCode, innerError) {\n super(message);\n this.errorCode = errorCode;\n this.innerError = innerError;\n this.name = \"RuntimeError\";\n BaseError._setPrototypeOf(this, RuntimeError.prototype);\n }\n}","map":{"version":3,"names":["BaseError","Error","_setPrototypeOf","Object","setPrototypeOf","o","proto","__proto__","ErrorCodes","MeshInvalidPositionsError","UnsupportedTextureError","GLTFLoaderUnexpectedMagicError","SceneLoaderError","LoadFileError","RequestFileError","ReadFileError","RuntimeError","constructor","message","errorCode","innerError","name","prototype"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Misc/error.js"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\n/**\n * Base error. Due to limitations of typedoc-check and missing documentation\n * in lib.es5.d.ts, cannot extend Error directly for RuntimeError.\n * @ignore\n */\nexport class BaseError extends Error {\n}\n// See https://stackoverflow.com/questions/12915412/how-do-i-extend-a-host-object-e-g-error-in-typescript\n// and https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work\n// Polyfill for Object.setPrototypeOf if necessary.\nBaseError._setPrototypeOf = Object.setPrototypeOf ||\n ((o, proto) => {\n o.__proto__ = proto;\n return o;\n });\n/* IMP! DO NOT CHANGE THE NUMBERING OF EXISTING ERROR CODES */\n/**\n * Error codes for BaseError\n */\nexport const ErrorCodes = {\n // Mesh errors 0-999\n /** Invalid or empty mesh vertex positions. */\n MeshInvalidPositionsError: 0,\n // Texture errors 1000-1999\n /** Unsupported texture found. */\n UnsupportedTextureError: 1000,\n // GLTFLoader errors 2000-2999\n /** Unexpected magic number found in GLTF file header. */\n GLTFLoaderUnexpectedMagicError: 2000,\n // SceneLoader errors 3000-3999\n /** SceneLoader generic error code. Ideally wraps the inner exception. */\n SceneLoaderError: 3000,\n // File related errors 4000-4999\n /** Load file error */\n LoadFileError: 4000,\n /** Request file error */\n RequestFileError: 4001,\n /** Read file error */\n ReadFileError: 4002,\n};\n/**\n * Application runtime error\n */\nexport class RuntimeError extends BaseError {\n /**\n * Creates a new RuntimeError\n * @param message defines the message of the error\n * @param errorCode the error code\n * @param innerError the error that caused the outer error\n */\n constructor(message, errorCode, innerError) {\n super(message);\n this.errorCode = errorCode;\n this.innerError = innerError;\n this.name = \"RuntimeError\";\n BaseError._setPrototypeOf(this, RuntimeError.prototype);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,SAASC,KAAK,CAAC;AAErC;AACA;AACA;AACAD,SAAS,CAACE,eAAe,GAAGC,MAAM,CAACC,cAAc,KAC5C,CAACC,CAAC,EAAEC,KAAK,KAAK;EACXD,CAAC,CAACE,SAAS,GAAGD,KAAK;EACnB,OAAOD,CAAC;AACZ,CAAC,CAAC;AACN;AACA;AACA;AACA;AACA,OAAO,MAAMG,UAAU,GAAG;EACtB;EACA;EACAC,yBAAyB,EAAE,CAAC;EAC5B;EACA;EACAC,uBAAuB,EAAE,IAAI;EAC7B;EACA;EACAC,8BAA8B,EAAE,IAAI;EACpC;EACA;EACAC,gBAAgB,EAAE,IAAI;EACtB;EACA;EACAC,aAAa,EAAE,IAAI;EACnB;EACAC,gBAAgB,EAAE,IAAI;EACtB;EACAC,aAAa,EAAE;AACnB,CAAC;AACD;AACA;AACA;AACA,OAAO,MAAMC,YAAY,SAAShB,SAAS,CAAC;EACxC;AACJ;AACA;AACA;AACA;AACA;EACIiB,WAAWA,CAACC,OAAO,EAAEC,SAAS,EAAEC,UAAU,EAAE;IACxC,KAAK,CAACF,OAAO,CAAC;IACd,IAAI,CAACC,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,IAAI,GAAG,cAAc;IAC1BrB,SAAS,CAACE,eAAe,CAAC,IAAI,EAAEc,YAAY,CAACM,SAAS,CAAC;EAC3D;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}