mp-lens
Version:
微信小程序分析工具 (Unused Code, Dependencies, Visualization)
17 lines • 644 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HandledError = void 0;
/**
* Represents an error that is handled by the application and typically communicated to the user,
* rather than being an unexpected program bug. These errors are not sent to telemetry.
*/
class HandledError extends Error {
constructor(message) {
super(message);
this.name = 'HandledError';
// Ensure the prototype chain is correctly set up for instanceof checks
Object.setPrototypeOf(this, HandledError.prototype);
}
}
exports.HandledError = HandledError;
//# sourceMappingURL=errors.js.map