annotate Implab/TransientPromiseException.cs @ 110:1a8426e6e895 v2

added promise timeout helper
author cin
date Sun, 16 Nov 2014 02:49:12 +0300
parents d67b95eddaf4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
72
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
1 using System;
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
2
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
3 namespace Implab {
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
4
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
5 [Serializable]
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
6 public class TransientPromiseException : Exception {
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
7 /// <summary>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
8 /// Initializes a new instance of the <see cref="PromiseFailedException"/> class.
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
9 /// </summary>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
10 /// <param name="inner">The exception that is the cause of the current exception.</param>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
11 public TransientPromiseException(Exception inner) : base("The preceding promise has failed", inner) {
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
12 }
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
13
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
14 /// <summary>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
15 /// Initializes a new instance of the <see cref="PromiseFailedException"/> class
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
16 /// </summary>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
17 /// <param name="message">A <see cref="T:System.String"/> that describes the exception. </param>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
18 /// <param name="inner">The exception that is the cause of the current exception. </param>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
19 public TransientPromiseException(string message, Exception inner)
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
20 : base(message, inner) {
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
21 }
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
22
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
23 /// <summary>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
24 /// Initializes a new instance of the <see cref="PromiseFailedException"/> class
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
25 /// </summary>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
26 /// <param name="context">The contextual information about the source or destination.</param>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
27 /// <param name="info">The object that holds the serialized object data.</param>
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
28 protected TransientPromiseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
29 : base(info, context) {
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
30 }
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
31 }
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
32 }
d67b95eddaf4 promises refactoring
cin
parents:
diff changeset
33