PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost/Events/InvalidMigrationTypeException.cs

#
C# | 44 lines | 19 code | 4 blank | 21 comment | 0 complexity | 1370fc1a6c3be8c855bc1b9e1029e929 MD5 | raw file
 1using System;
 2using System.Runtime.Serialization;
 3
 4namespace Bifrost.Events
 5{
 6    /// <summary>
 7    /// Represents an exceptional situation where an <see cref="IEvent">Event</see> in an <see cref="EventMigrationHierarchy">EventMigrationHierarchy</see>
 8    /// has does not migrate from the previous event in the migration hierarchy.
 9    /// </summary>
10    public class InvalidMigrationTypeException : Exception
11    {
12        /// <summary>
13        /// Initializes a <see cref="InvalidMigrationTypeException">InvalidMigrationTypeException</see>
14        /// </summary>
15        public InvalidMigrationTypeException()
16        {}
17
18        /// <summary>
19        /// Initializes a <see cref="InvalidMigrationTypeException">InvalidMigrationTypeException</see>
20        /// </summary>
21        /// <param name="message">Error Message</param>
22        public InvalidMigrationTypeException(string message) : base(message)
23        {}
24
25        /// <summary>
26        /// Initializes a <see cref="InvalidMigrationTypeException">InvalidMigrationTypeException</see>
27        /// </summary>
28        /// <param name="message">Error Message</param>
29        /// <param name="innerException">Inner Exception</param>
30        public InvalidMigrationTypeException(string message, Exception innerException) : base(message,innerException)
31        {}
32
33#if(!SILVERLIGHT)
34        /// <summary>
35        /// Initializes a <see cref="InvalidMigrationTypeException">InvalidMigrationTypeException</see> for serialization
36        /// </summary>
37        /// <param name="serializationInfo">Serialization Info</param>
38        /// <param name="streamingContext">Streaming Context</param>
39        protected InvalidMigrationTypeException(SerializationInfo serializationInfo, StreamingContext streamingContext)
40            : base(serializationInfo,streamingContext)
41        {}
42#endif
43    }
44}