view MetroWpf/MetroWpf.Framework/Extensions/CombinedException.cs @ 110:0185b15e04ba

Test added for multi property validation
author stevenhollidge <stevenhollidge@hotmail.com>
date Sun, 06 May 2012 20:43:37 +0100
parents 060f02cd4591
children
line wrap: on
line source

using System;

namespace MetroWpf
{
    /// <summary>
    /// Generic exception for combining several other exceptions
    /// </summary>
    public class CombinedException : Exception
    {
        #region · Properties ·

        /// <summary>
        /// Gets the inner exceptions.
        /// </summary>
        /// <value>The inner exceptions.</value>
        public Exception[] InnerExceptions
        {
            get;
            protected set;
        }

        #endregion

        #region · Constructors ·

        /// <summary>
        /// Initializes a new instance of the <see cref="CombinedException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="innerExceptions">The inner exceptions.</param>
        public CombinedException(string message, Exception[] innerExceptions)
            : base(message)
        {
            this.InnerExceptions = innerExceptions;
        }

        #endregion
    }
}