mitsuke-live
Version:
Real-time object detection library for web browsers using TensorFlow.js and YOLO
17 lines (16 loc) • 392 B
JavaScript
import { ERROR_MESSAGES } from "./error-messages.js";
class MLInternalError extends Error {
code;
fatal;
constructor(key, fatal = true, error) {
const message = ERROR_MESSAGES[key];
super(message, { cause: error });
this.code = key;
this.fatal = fatal;
this.name = "MLInternalError";
}
}
export {
MLInternalError
};
//# sourceMappingURL=ml-internal-error.js.map