annotate Implab/PromiseTransientException.cs @ 130:671f60cd0250 v2

fixed Resove method bug when calling it on already cancelled promise
author cin
date Fri, 30 Jan 2015 17:07:17 +0300
parents 2573b562e328
children f75cfa58e3d4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
119
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
1 using System;
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
2
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
3 namespace Implab {
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
4
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
5 [Serializable]
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
6 public class PromiseTransientException : Exception {
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
7 /// <summary>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
8 /// Initializes a new instance of the <see cref="PromiseTransientException"/> class.
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
9 /// </summary>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
10 /// <param name="inner">The exception that is the cause of the current exception.</param>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
11 public PromiseTransientException(Exception inner) : base("The preceding promise has failed", inner) {
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
12 }
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
13
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
14 /// <summary>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
15 /// Initializes a new instance of the <see cref="PromiseTransientException"/> class
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
16 /// </summary>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
17 /// <param name="message">A <see cref="T:System.String"/> that describes the exception. </param>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
18 /// <param name="inner">The exception that is the cause of the current exception. </param>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
19 public PromiseTransientException(string message, Exception inner)
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
20 : base(message, inner) {
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
21 }
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
22
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
23 /// <summary>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
24 /// Initializes a new instance of the <see cref="PromiseTransientException"/> class
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
25 /// </summary>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
26 /// <param name="context">The contextual information about the source or destination.</param>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
27 /// <param name="info">The object that holds the serialized object data.</param>
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
28 protected PromiseTransientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
29 : base(info, context) {
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
30 }
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
31 }
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
32 }
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
33