1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | Object.defineProperty(exports, "__esModule", { value: true });
|
11 | exports.IocLookupException = void 0;
|
12 | const utils_1 = require("@poppinss/utils");
|
13 |
|
14 |
|
15 |
|
16 | class IocLookupException extends utils_1.Exception {
|
17 | static lookupFailed(namespace) {
|
18 | return new this(`Cannot resolve "${namespace}" namespace from the IoC Container`, 500, 'E_IOC_LOOKUP_FAILED');
|
19 | }
|
20 | |
21 |
|
22 |
|
23 | static invalidNamespace() {
|
24 | return new this('"Ioc.lookup" accepts a namespace string or a lookup node', 500, 'E_INVALID_IOC_NAMESPACE');
|
25 | }
|
26 | |
27 |
|
28 |
|
29 | static missingFake(namespace) {
|
30 | return new this(`Cannot resolve fake for "${namespace}" namespace`, 500, 'E_MISSING_IOC_FAKE');
|
31 | }
|
32 | }
|
33 | exports.IocLookupException = IocLookupException;
|