119
|
1 using System;
|
|
2
|
|
3 namespace Implab {
|
|
4 [Serializable]
|
|
5 public class PromiseTransientException : Exception {
|
|
6 /// <summary>
|
|
7 /// Initializes a new instance of the <see cref="PromiseTransientException"/> class.
|
|
8 /// </summary>
|
|
9 /// <param name="inner">The exception that is the cause of the current exception.</param>
|
|
10 public PromiseTransientException(Exception inner) : base("The preceding promise has failed", inner) {
|
|
11 }
|
|
12
|
|
13 /// <summary>
|
|
14 /// Initializes a new instance of the <see cref="PromiseTransientException"/> class
|
|
15 /// </summary>
|
|
16 /// <param name="message">A <see cref="T:System.String"/> that describes the exception. </param>
|
|
17 /// <param name="inner">The exception that is the cause of the current exception. </param>
|
|
18 public PromiseTransientException(string message, Exception inner)
|
|
19 : base(message, inner) {
|
|
20 }
|
|
21
|
|
22 /// <summary>
|
|
23 /// Initializes a new instance of the <see cref="PromiseTransientException"/> class
|
|
24 /// </summary>
|
|
25 /// <param name="context">The contextual information about the source or destination.</param>
|
|
26 /// <param name="info">The object that holds the serialized object data.</param>
|
|
27 protected PromiseTransientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
|
|
28 : base(info, context) {
|
|
29 }
|
|
30 }
|
|
31 }
|
|
32
|