Browse Source

feat: add exceptions as enum

pull/5137/head
Arman Ozak 6 years ago
parent
commit
caef401064
  1. 5
      npm/ng-packs/packages/schematics/src/enums/exception.ts
  2. 1
      npm/ng-packs/packages/schematics/src/enums/index.ts

5
npm/ng-packs/packages/schematics/src/enums/exception.ts

@ -0,0 +1,5 @@
export const enum Exception {
InvalidWorkspace = 'Invalid Workspace: The angular.json should be a valid JSON file.',
NoProject = 'Unknown Project: Either define a default project in your workspace or specify the project name in schematics options.',
NoWorkspace = 'Workspace Not Found: Make sure you are running schematics at the root directory of your workspace and it has an angular.json file.',
}

1
npm/ng-packs/packages/schematics/src/enums/index.ts

@ -0,0 +1 @@
export * from './exception';
Loading…
Cancel
Save