mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
20 lines
414 B
TypeScript
20 lines
414 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
export class NgToolkitError extends Error {
|
|
constructor(message?: string) {
|
|
super();
|
|
|
|
if (message) {
|
|
this.message = message;
|
|
} else {
|
|
this.message = this.constructor.name;
|
|
}
|
|
}
|
|
}
|