fix(exception_handler): fix error messages of wrapped exceptions
Closes #4117
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import {LocationStrategy} from './location_strategy';
|
||||
import {StringWrapper, isPresent, CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {BaseException, isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {OpaqueToken, Injectable, Optional, Inject} from 'angular2/src/core/di';
|
||||
|
||||
export const APP_BASE_HREF: OpaqueToken = CONST_EXPR(new OpaqueToken('appBaseHref'));
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {BaseException} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
|
||||
function _abstract() {
|
||||
return new BaseException('This method is abstract');
|
||||
|
@ -4,9 +4,10 @@ import {
|
||||
RegExpMatcherWrapper,
|
||||
StringWrapper,
|
||||
isPresent,
|
||||
isBlank,
|
||||
BaseException
|
||||
isBlank
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
|
||||
import {
|
||||
Map,
|
||||
MapWrapper,
|
||||
|
@ -1,6 +1,8 @@
|
||||
import {AsyncRoute, AuxRoute, Route, Redirect, RouteDefinition} from './route_config_decorator';
|
||||
import {ComponentDefinition} from './route_definition';
|
||||
import {Type, BaseException} from 'angular2/src/core/facade/lang';
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
|
||||
|
||||
/**
|
||||
* Given a JS Object that represents... returns a corresponding Route, AsyncRoute, or Redirect
|
||||
|
@ -6,9 +6,9 @@ import {
|
||||
isPresent,
|
||||
isType,
|
||||
isStringMap,
|
||||
BaseException,
|
||||
Type
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {
|
||||
Map,
|
||||
MapWrapper,
|
||||
|
@ -17,10 +17,10 @@ import {
|
||||
isStringMap,
|
||||
isFunction,
|
||||
StringWrapper,
|
||||
BaseException,
|
||||
Type,
|
||||
getTypeNameForDebugging
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {
|
||||
RouteConfig,
|
||||
AsyncRoute,
|
||||
|
@ -11,10 +11,9 @@ import {
|
||||
StringWrapper,
|
||||
isPresent,
|
||||
Type,
|
||||
isArray,
|
||||
BaseException
|
||||
isArray
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {RouteRegistry} from './route_registry';
|
||||
import {Pipeline} from './pipeline';
|
||||
import {ComponentInstruction, Instruction, stringifyInstruction} from './instruction';
|
||||
|
@ -1,6 +1,7 @@
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {isBlank, isPresent, BaseException} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank, isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
|
||||
import {Directive, Attribute} from 'angular2/src/core/metadata';
|
||||
import {DynamicComponentLoader, ComponentRef, ElementRef} from 'angular2/src/core/compiler';
|
||||
|
@ -1,11 +1,6 @@
|
||||
import {StringMap, StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {
|
||||
isPresent,
|
||||
isBlank,
|
||||
BaseException,
|
||||
RegExpWrapper,
|
||||
CONST_EXPR
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {isPresent, isBlank, RegExpWrapper, CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
|
||||
/**
|
||||
* This class represents a parsed URL
|
||||
|
Reference in New Issue
Block a user