diff Implab/FailedPromiseT.cs @ 242:cbe10ac0731e v3

Working on promises
author cin
date Wed, 24 Jan 2018 03:03:21 +0300
parents 4d9830a9bbb8
children
line wrap: on
line diff
--- a/Implab/FailedPromiseT.cs	Tue Jan 23 19:39:21 2018 +0300
+++ b/Implab/FailedPromiseT.cs	Wed Jan 24 03:03:21 2018 +0300
@@ -9,7 +9,7 @@
         public IPromise<T> On(Action<T> success, Action<Exception> error, Action<Exception> cancel) {
             if (error != null) {
                 try {
-                    error(Error);  
+                    error(RejectReason);  
                     // Analysis disable once EmptyGeneralCatchClause
                 } catch {
                 }
@@ -20,7 +20,7 @@
         public IPromise<T> On(Action<T> success, Action<Exception> error) {
             if (error != null) {
                 try {
-                    error(Error);  
+                    error(RejectReason);  
                     // Analysis disable once EmptyGeneralCatchClause
                 } catch {
                 }
@@ -33,11 +33,11 @@
         }
 
         T IPromise<T>.Join() {
-            throw new TargetInvocationException(Error);
+            throw new TargetInvocationException(RejectReason);
         }
 
         T IPromise<T>.Join(int timeout) {
-            throw new TargetInvocationException(Error);
+            throw new TargetInvocationException(RejectReason);
         }