2015-05-01 14:05:19 -07:00
|
|
|
import {ProtoRecord} from './proto_record';
|
|
|
|
import {BaseException} from "angular2/src/facade/lang";
|
|
|
|
|
|
|
|
export class ExpressionChangedAfterItHasBeenChecked extends BaseException {
|
|
|
|
constructor(proto: ProtoRecord, change: any) {
|
2015-07-05 14:46:35 -07:00
|
|
|
super(`Expression '${proto.expressionAsString}' has changed after it was checked. ` +
|
|
|
|
`Previous value: '${change.previousValue}'. Current value: '${change.currentValue}'`);
|
2015-05-01 14:05:19 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class ChangeDetectionError extends BaseException {
|
|
|
|
location: string;
|
|
|
|
|
2015-07-05 14:46:35 -07:00
|
|
|
constructor(proto: ProtoRecord, originalException: any, originalStack: any) {
|
|
|
|
super(`${originalException} in [${proto.expressionAsString}]`, originalException,
|
|
|
|
originalStack);
|
2015-05-01 14:05:19 -07:00
|
|
|
this.location = proto.expressionAsString;
|
|
|
|
}
|
2015-06-05 17:33:51 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export class DehydratedException extends BaseException {
|
|
|
|
constructor() { super('Attempt to detect changes on a dehydrated detector.'); }
|
|
|
|
}
|