Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

chore: replace BaseException with new Error #2205

Merged
merged 1 commit into from
Aug 26, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions public/docs/_examples/ngmodule/ts/app/core/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
// #docregion
// #docregion v4
import {
BaseException, ModuleWithProviders,
NgModule, Optional, SkipSelf } from '@angular/core';
ModuleWithProviders, NgModule,
Optional, SkipSelf } from '@angular/core';

import { CommonModule } from '@angular/common';
import { CommonModule } from '@angular/common';

import { TitleComponent } from './title.component';
import { UserService } from './user.service';
import { TitleComponent } from './title.component';
import { UserService } from './user.service';
// #enddocregion
import { UserServiceConfig } from './user.service';
import { UserServiceConfig } from './user.service';

// #docregion v4
@NgModule({
Expand All @@ -26,7 +26,7 @@ export class CoreModule {
// #docregion ctor
constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
if (parentModule) {
throw new BaseException(
throw new Error(
'CoreModule is already loaded. Import it in the AppModule only');
}
}
Expand Down