(token: any, notFoundValue: any = THROW_IF_NOT_FOUND)
| 15 | |
| 16 | export class NullInjector implements Injector { |
| 17 | get(token: any, notFoundValue: any = THROW_IF_NOT_FOUND): any { |
| 18 | if (notFoundValue === THROW_IF_NOT_FOUND) { |
| 19 | const message = ngDevMode ? `No provider found for \`${stringify(token)}\`.` : ''; |
| 20 | const error = createRuntimeError(message, RuntimeErrorCode.PROVIDER_NOT_FOUND); |
| 21 | |
| 22 | // Note: This is the name used by the primitives to identify a not found error. |
| 23 | error.name = 'ɵNotFound'; |
| 24 | |
| 25 | throw error; |
| 26 | } |
| 27 | return notFoundValue; |
| 28 | } |
| 29 | } |
nothing calls this directly
no test coverage detected