11import { isPresent , isBlank , print } from 'angular2/src/facade/lang' ;
2- import { BaseException , WrappedException } from 'angular2/src/facade/exceptions ' ;
2+ import { BaseWrappedException } from 'angular2/src/facade/base_wrapped_exception ' ;
33import { ListWrapper , isListLikeIterable } from 'angular2/src/facade/collection' ;
44
55class _ArrayLogger {
@@ -80,7 +80,8 @@ export class ExceptionHandler {
8080
8181 /** @internal */
8282 _extractMessage ( exception : any ) : string {
83- return exception instanceof WrappedException ? exception . wrapperMessage : exception . toString ( ) ;
83+ return exception instanceof BaseWrappedException ? exception . wrapperMessage :
84+ exception . toString ( ) ;
8485 }
8586
8687 /** @internal */
@@ -92,7 +93,7 @@ export class ExceptionHandler {
9293 /** @internal */
9394 _findContext ( exception : any ) : any {
9495 try {
95- if ( ! ( exception instanceof WrappedException ) ) return null ;
96+ if ( ! ( exception instanceof BaseWrappedException ) ) return null ;
9697 return isPresent ( exception . context ) ? exception . context :
9798 this . _findContext ( exception . originalException ) ;
9899 } catch ( e ) {
@@ -103,10 +104,10 @@ export class ExceptionHandler {
103104
104105 /** @internal */
105106 _findOriginalException ( exception : any ) : any {
106- if ( ! ( exception instanceof WrappedException ) ) return null ;
107+ if ( ! ( exception instanceof BaseWrappedException ) ) return null ;
107108
108109 var e = exception . originalException ;
109- while ( e instanceof WrappedException && isPresent ( e . originalException ) ) {
110+ while ( e instanceof BaseWrappedException && isPresent ( e . originalException ) ) {
110111 e = e . originalException ;
111112 }
112113
@@ -115,13 +116,13 @@ export class ExceptionHandler {
115116
116117 /** @internal */
117118 _findOriginalStack ( exception : any ) : any {
118- if ( ! ( exception instanceof WrappedException ) ) return null ;
119+ if ( ! ( exception instanceof BaseWrappedException ) ) return null ;
119120
120121 var e = exception ;
121122 var stack = exception . originalStack ;
122- while ( e instanceof WrappedException && isPresent ( e . originalException ) ) {
123+ while ( e instanceof BaseWrappedException && isPresent ( e . originalException ) ) {
123124 e = e . originalException ;
124- if ( e instanceof WrappedException && isPresent ( e . originalException ) ) {
125+ if ( e instanceof BaseWrappedException && isPresent ( e . originalException ) ) {
125126 stack = e . originalStack ;
126127 }
127128 }
0 commit comments