@clawject/di
Version:
<p align="center"> <a href="https://clawject.com/" target="_blank"><img src="https://clawject.com/img/logo.svg" align="center" alt="Clawject Logo" width="120" height="120" /></a> </p>
13 lines (12 loc) • 610 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorBuilder = void 0;
const RuntimeErrors_1 = require("./api/RuntimeErrors");
const constants_1 = require("./constants");
class ErrorBuilder {
static usageWithoutConfiguredDI(cause = 'DI') {
console.log(new Error().stack);
return new RuntimeErrors_1.RuntimeErrors.UsageWithoutConfiguredDIError(`You are trying to use ${cause} without without proper 'clawject' configuration or in wrong place, please check the documentation ${constants_1.GITHUB_REPO_LINK}`);
}
}
exports.ErrorBuilder = ErrorBuilder;