refactor(exception_handler): move ExceptionHandler into facade
This commit is contained in:
@@ -27,7 +27,7 @@ import {
|
||||
KeyValueDiffers,
|
||||
defaultKeyValueDiffers
|
||||
} from 'angular2/src/core/change_detection/change_detection';
|
||||
import {ExceptionHandler} from './exception_handler';
|
||||
import {ExceptionHandler} from 'angular2/src/core/facade/exception_handler';
|
||||
import {ViewLoader} from 'angular2/src/core/render/dom/compiler/view_loader';
|
||||
import {StyleUrlResolver} from 'angular2/src/core/render/dom/compiler/style_url_resolver';
|
||||
import {StyleInliner} from 'angular2/src/core/render/dom/compiler/style_inliner';
|
||||
|
||||
-2
@@ -1,4 +1,3 @@
|
||||
import {Injectable} from 'angular2/src/core/di';
|
||||
import {isPresent, isBlank, print, BaseException} from 'angular2/src/core/facade/lang';
|
||||
import {ListWrapper, isListLikeIterable} from 'angular2/src/core/facade/collection';
|
||||
|
||||
@@ -31,7 +30,6 @@ class _ArrayLogger {
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
@Injectable()
|
||||
export class ExceptionHandler {
|
||||
constructor(private _logger: any, private _rethrowException: boolean = true) {}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {bind} from 'angular2/src/core/di';
|
||||
import {ExceptionHandler} from './exception_handler';
|
||||
import {ExceptionHandler} from 'angular2/src/core/facade/exception_handler';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
export const EXCEPTION_BINDING =
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
KeyValueDiffers,
|
||||
defaultKeyValueDiffers
|
||||
} from 'angular2/src/core/change_detection/change_detection';
|
||||
import {ExceptionHandler} from 'angular2/src/core/exception_handler';
|
||||
import {ExceptionHandler} from 'angular2/src/core/facade/exception_handler';
|
||||
import {ViewLoader} from 'angular2/src/core/render/dom/compiler/view_loader';
|
||||
import {ViewResolver} from 'angular2/src/core/compiler/view_resolver';
|
||||
import {DirectiveResolver} from 'angular2/src/core/compiler/directive_resolver';
|
||||
|
||||
@@ -22,7 +22,7 @@ import 'package:angular2/src/core/reflection/reflection_capabilities.dart';
|
||||
|
||||
import 'package:angular2/src/core/di/binding.dart' show bind;
|
||||
import 'package:angular2/src/core/di/injector.dart' show Injector;
|
||||
import 'package:angular2/src/core/exception_handler.dart' show ExceptionHandler;
|
||||
import 'package:angular2/src/core/facade/exception_handler.dart' show ExceptionHandler;
|
||||
import 'package:angular2/src/core/facade/collection.dart' show StringMapWrapper;
|
||||
|
||||
import 'test_injector.dart';
|
||||
|
||||
@@ -6,7 +6,7 @@ import {global, isFunction} from 'angular2/src/core/facade/lang';
|
||||
import {NgZoneZone} from 'angular2/src/core/zone/ng_zone';
|
||||
|
||||
import {bind} from 'angular2/src/core/di';
|
||||
import {ExceptionHandler} from 'angular2/src/core/exception_handler';
|
||||
import {ExceptionHandler} from 'angular2/src/core/facade/exception_handler';
|
||||
|
||||
import {createTestInjector, FunctionWithParamTokens, inject} from './test_injector';
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ import {ProtoViewFactory} from 'angular2/src/core/compiler/proto_view_factory';
|
||||
import {ViewResolver} from 'angular2/src/core/compiler/view_resolver';
|
||||
import {ViewLoader} from 'angular2/src/core/render/dom/compiler/view_loader';
|
||||
import {DirectiveResolver} from 'angular2/src/core/compiler/directive_resolver';
|
||||
import {ExceptionHandler} from 'angular2/src/core/exception_handler';
|
||||
import {ExceptionHandler} from 'angular2/src/core/facade/exception_handler';
|
||||
import {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mapper';
|
||||
import {StyleInliner} from 'angular2/src/core/render/dom/compiler/style_inliner';
|
||||
import {DynamicComponentLoader} from 'angular2/src/core/compiler/dynamic_component_loader';
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
KeyValueDiffers,
|
||||
defaultKeyValueDiffers
|
||||
} from 'angular2/src/core/change_detection/change_detection';
|
||||
import {ExceptionHandler} from 'angular2/src/core/exception_handler';
|
||||
import {ExceptionHandler} from 'angular2/src/core/facade/exception_handler';
|
||||
import {DirectiveResolver} from 'angular2/src/core/compiler/directive_resolver';
|
||||
import {StyleUrlResolver} from 'angular2/src/core/render/dom/compiler/style_url_resolver';
|
||||
import {PipeResolver} from 'angular2/src/core/compiler/pipe_resolver';
|
||||
|
||||
Reference in New Issue
Block a user