using System; namespace Implab { [Serializable] public class PromiseTransientException : Exception { /// /// Initializes a new instance of the class. /// /// The exception that is the cause of the current exception. public PromiseTransientException(Exception inner) : base("The preceding promise has failed", inner) { } /// /// Initializes a new instance of the class /// /// A that describes the exception. /// The exception that is the cause of the current exception. public PromiseTransientException(string message, Exception inner) : base(message, inner) { } /// /// Initializes a new instance of the class /// /// The contextual information about the source or destination. /// The object that holds the serialized object data. protected PromiseTransientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } } }