chore: replace BaseException with new Error (#2205)
because BaseException removed from A2 public api
This commit is contained in:
parent
094f63aaf9
commit
82539b69cb
|
@ -3,8 +3,8 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
// #docregion v4
|
// #docregion v4
|
||||||
import {
|
import {
|
||||||
BaseException, ModuleWithProviders,
|
ModuleWithProviders, NgModule,
|
||||||
NgModule, Optional, SkipSelf } from '@angular/core';
|
Optional, SkipSelf } from '@angular/core';
|
||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ export class CoreModule {
|
||||||
// #docregion ctor
|
// #docregion ctor
|
||||||
constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
|
constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
|
||||||
if (parentModule) {
|
if (parentModule) {
|
||||||
throw new BaseException(
|
throw new Error(
|
||||||
'CoreModule is already loaded. Import it in the AppModule only');
|
'CoreModule is already loaded. Import it in the AppModule only');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue