1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | Object.defineProperty(exports, "__esModule", { value: true });
|
11 | exports.InvalidInjectionException = void 0;
|
12 | const utils_1 = require("@poppinss/utils");
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | class InvalidInjectionException extends utils_1.Exception {
|
18 | static invoke(value, parentName, index) {
|
19 | const primitiveName = `{${value.name} Constructor}`;
|
20 | return new this(`Cannot inject "${primitiveName}" to "${parentName}" at position "${index + 1}"`);
|
21 | }
|
22 | }
|
23 | exports.InvalidInjectionException = InvalidInjectionException;
|