annotate Implab/TransientPromiseException.cs @ 89:ce0171cacec4 v2

improved performance of a chained map operation
author cin
date Wed, 08 Oct 2014 02:19:45 +0400
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