Skip to content

Commit 0ad81cd

Browse files
alan-agius4angular-robot[bot]
authored andcommitted
refactor(@angular-devkit/core): remove deprecated exceptions
With commits removes the several deprecated exceptions. BREAKING CHANGE: - `ContentHasMutatedException`, `InvalidUpdateRecordException`, `UnimplementedException` and `MergeConflictException` API from `@angular-devkit/core` have been removed in favor of the API from `@angular-devkit/schematics`. - `UnsupportedPlatformException` - A custom error exception should be created instead.
1 parent 760ebf1 commit 0ad81cd

File tree

2 files changed

+0
-71
lines changed

2 files changed

+0
-71
lines changed

goldens/public-api/angular_devkit/core/index.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ export class CircularDependencyFoundException extends BaseException {
5959
// @public
6060
function classify(str: string): string;
6161

62-
// @public @deprecated (undocumented)
63-
export class ContentHasMutatedException extends BaseException {
64-
constructor(path: string);
65-
}
66-
6762
// @public
6863
class CordHost extends SimpleMemoryHost {
6964
constructor(_back: ReadonlyHost);
@@ -326,11 +321,6 @@ export class InvalidPathException extends BaseException {
326321
constructor(path: string);
327322
}
328323

329-
// @public @deprecated (undocumented)
330-
export class InvalidUpdateRecordException extends BaseException {
331-
constructor();
332-
}
333-
334324
// @public
335325
export function isAbsolute(p: Path): boolean;
336326

@@ -535,11 +525,6 @@ export { logging }
535525
// @public (undocumented)
536526
type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'fatal';
537527

538-
// @public @deprecated (undocumented)
539-
export class MergeConflictException extends BaseException {
540-
constructor(path: string);
541-
}
542-
543528
// @public
544529
function mergeSchemas(...schemas: (JsonSchema | undefined)[]): JsonSchema;
545530

@@ -1320,21 +1305,11 @@ function trimNewlines(strings: TemplateStringsArray, ...values: any[]): string;
13201305
// @public
13211306
function underscore(str: string): string;
13221307

1323-
// @public @deprecated (undocumented)
1324-
export class UnimplementedException extends BaseException {
1325-
constructor();
1326-
}
1327-
13281308
// @public (undocumented)
13291309
export class UnknownException extends BaseException {
13301310
constructor(message: string);
13311311
}
13321312

1333-
// @public @deprecated (undocumented)
1334-
export class UnsupportedPlatformException extends BaseException {
1335-
constructor();
1336-
}
1337-
13381313
// @public (undocumented)
13391314
type UriHandler = (uri: string) => Observable<JsonObject> | Promise<JsonObject> | null | undefined;
13401315

packages/angular_devkit/core/src/exception.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -39,49 +39,3 @@ export class PathIsFileException extends BaseException {
3939
super(`Path "${path}" is a file.`);
4040
}
4141
}
42-
43-
/**
44-
* @deprecated since version 14. Use the same symbol from `@angular-devkit/schematics`.
45-
*/
46-
export class ContentHasMutatedException extends BaseException {
47-
constructor(path: string) {
48-
super(`Content at path "${path}" has changed between the start and the end of an update.`);
49-
}
50-
}
51-
52-
/**
53-
* @deprecated since version 14. Use the same symbol from `@angular-devkit/schematics`.
54-
*/
55-
56-
export class InvalidUpdateRecordException extends BaseException {
57-
constructor() {
58-
super(`Invalid record instance.`);
59-
}
60-
}
61-
62-
/**
63-
* @deprecated since version 14. Use the same symbol from `@angular-devkit/schematics`.
64-
*/
65-
export class MergeConflictException extends BaseException {
66-
constructor(path: string) {
67-
super(`A merge conflicted on path "${path}".`);
68-
}
69-
}
70-
71-
/**
72-
* @deprecated since version 14. Create a custom exception implementation instead.
73-
*/
74-
export class UnimplementedException extends BaseException {
75-
constructor() {
76-
super('This function is unimplemented.');
77-
}
78-
}
79-
80-
/**
81-
* @deprecated since version 14. Create a custom exception implementation instead.
82-
*/
83-
export class UnsupportedPlatformException extends BaseException {
84-
constructor() {
85-
super('This platform is not supported by this code path.');
86-
}
87-
}

0 commit comments

Comments
 (0)