示例#1
0
        /// <summary>
        /// Initializes an exception with the specified thread affinity
        /// </summary>
        /// <param name="threadAffinity">The thread affinity which caused the error</param>
        /// <param name="message">The exception that describes the error</param>
        /// <param name="inner">The exception that is the cause of the current exception</param>
        public ThreadAffinityException(ThreadAffinity threadAffinity, string message, Exception inner)
            : base(message, inner)
        {
            Contract.Requires(threadAffinity != null);

            ThreadAffinity = threadAffinity;
        }
示例#2
0
        /// <summary>
        /// Initializes an exception with the specified thread affinity
        /// </summary>
        /// <param name="threadAffinity">The thread affinity which caused the error</param>
        public ThreadAffinityException(ThreadAffinity threadAffinity)
        {
            Contract.Requires(threadAffinity != null);

            ThreadAffinity = threadAffinity;
        }