fix(errors): [2/2] Rename Exception to Error; remove from public API
BREAKING CHANGE: Exceptions are no longer part of the public API. We don't expect that anyone should be referring to the Exception types. ExceptionHandler.call(exception: any, stackTrace?: any, reason?: string): void; change to: ErrorHandler.handleError(error: any): void;
This commit is contained in:

committed by
Victor Berchet

parent
86ba072758
commit
7c07bfff97
91
tools/public_api_guard/core/index.d.ts
vendored
91
tools/public_api_guard/core/index.d.ts
vendored
@ -1,10 +1,3 @@
|
||||
/** @stable */
|
||||
export declare class AbstractProviderError extends BaseException {
|
||||
context: any;
|
||||
constructor(injector: ReflectiveInjector, key: ReflectiveKey, constructResolvingMessage: Function);
|
||||
addKey(injector: ReflectiveInjector, key: ReflectiveKey): void;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare abstract class AfterContentChecked {
|
||||
abstract ngAfterContentChecked(): void;
|
||||
@ -185,14 +178,6 @@ export interface AttributeMetadataFactory {
|
||||
/** @experimental */
|
||||
export declare const AUTO_STYLE: string;
|
||||
|
||||
/** @stable */
|
||||
export declare class BaseException extends Error {
|
||||
message: string;
|
||||
stack: any;
|
||||
constructor(message?: string);
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare enum ChangeDetectionStrategy {
|
||||
OnPush = 0,
|
||||
@ -331,12 +316,6 @@ export declare abstract class ComponentRef<C> {
|
||||
abstract onDestroy(callback: Function): void;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class ComponentStillLoadingError extends BaseException {
|
||||
compType: Type<any>;
|
||||
constructor(compType: Type<any>);
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare var ContentChild: ContentChildMetadataFactory;
|
||||
|
||||
@ -389,11 +368,6 @@ export declare function createPlatformFactory(parentPlaformFactory: PlatformFact
|
||||
/** @stable */
|
||||
export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
|
||||
|
||||
/** @stable */
|
||||
export declare class CyclicDependencyError extends AbstractProviderError {
|
||||
constructor(injector: ReflectiveInjector, key: ReflectiveKey);
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class DebugElement extends DebugNode {
|
||||
attributes: {
|
||||
@ -525,6 +499,12 @@ export declare abstract class EmbeddedViewRef<C> extends ViewRef {
|
||||
/** @stable */
|
||||
export declare function enableProdMode(): void;
|
||||
|
||||
/** @stable */
|
||||
export declare class ErrorHandler {
|
||||
constructor(rethrowError?: boolean);
|
||||
handleError(error: any): void;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class EventEmitter<T> extends Subject<T> {
|
||||
__isAsync: boolean;
|
||||
@ -533,13 +513,6 @@ export declare class EventEmitter<T> extends Subject<T> {
|
||||
subscribe(generatorOrNext?: any, error?: any, complete?: any): any;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class ExceptionHandler {
|
||||
constructor(_logger: any, _rethrowException?: boolean);
|
||||
call(exception: any, stackTrace?: any, reason?: string): void;
|
||||
static exceptionToString(exception: any, stackTrace?: any, reason?: string): string;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export interface ExistingProvider {
|
||||
multi?: boolean;
|
||||
@ -547,11 +520,6 @@ export interface ExistingProvider {
|
||||
useExisting: any;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class ExpressionChangedAfterItHasBeenCheckedException extends BaseException {
|
||||
constructor(oldValue: any, currValue: any, context: any);
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export interface FactoryProvider {
|
||||
deps?: any[];
|
||||
@ -681,20 +649,6 @@ export interface InputMetadataFactory {
|
||||
new (bindingPropertyName?: string): any;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class InstantiationError extends WrappedException {
|
||||
causeKey: ReflectiveKey;
|
||||
context: any;
|
||||
wrapperMessage: string;
|
||||
constructor(injector: ReflectiveInjector, originalException: any, originalStack: any, key: ReflectiveKey);
|
||||
addKey(injector: ReflectiveInjector, key: ReflectiveKey): void;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class InvalidProviderError extends BaseException {
|
||||
constructor(provider: any);
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare function isDevMode(): boolean;
|
||||
|
||||
@ -850,22 +804,6 @@ export declare class NgZone {
|
||||
/** @experimental */
|
||||
export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
|
||||
|
||||
/** @stable */
|
||||
export declare class NoAnnotationError extends BaseException {
|
||||
constructor(typeOrFunc: Type<any> | Function, params: any[][]);
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class NoComponentFactoryError extends BaseException {
|
||||
component: Function;
|
||||
constructor(component: Function);
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class NoProviderError extends AbstractProviderError {
|
||||
constructor(injector: ReflectiveInjector, key: ReflectiveKey);
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare abstract class OnChanges {
|
||||
abstract ngOnChanges(changes: SimpleChanges): void;
|
||||
@ -901,11 +839,6 @@ export interface OptionalMetadataFactory {
|
||||
new (): OptionalMetadata;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class OutOfBoundsError extends BaseException {
|
||||
constructor(index: number);
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare var Output: OutputMetadataFactory;
|
||||
|
||||
@ -1328,18 +1261,6 @@ export declare abstract class ViewRef {
|
||||
abstract onDestroy(callback: Function): any;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class WrappedException extends BaseWrappedException {
|
||||
context: any;
|
||||
message: string;
|
||||
originalException: any;
|
||||
originalStack: any;
|
||||
wrapperMessage: string;
|
||||
wrapperStack: any;
|
||||
constructor(_wrapperMessage: string, _originalException: any, _originalStack?: any, _context?: any);
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class WrappedValue {
|
||||
wrapped: any;
|
||||
|
Reference in New Issue
Block a user