InvalidFilePathException.cs 1.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
using System;

namespace NChronicle.File.Exceptions {

    /// <summary>
    /// The exception that is thrown when the specified file path is invalid. 
    /// </summary>
    public class InvalidFilePathException : Exception {

        /// <summary>
        /// Create a new <see cref="InvalidFilePathException"/> instance with
        /// the specified <paramref name="message"/>.
        /// </summary>
        /// <param name="message">A message describing the error.</param>
        public InvalidFilePathException (string message) : base(message) {}

        /// <summary>
        /// Create a new <see cref="InvalidFilePathException"/> instance with 
        /// the specified <paramref name="message"/> and <paramref name="innerException"/>.
        /// </summary>
        /// <param name="message">A message describing the error.</param>
        /// <param name="innerException">The exception that caused this exception.</param>
        public InvalidFilePathException (string message, Exception innerException) : base(message, innerException) {}

    }

}