|
using System;
using System.Globalization;
using Catel.Properties;
namespace Catel.IO
{
/// <summary>
/// Thrown when the requested directory cannot be created.
/// </summary>
public class CannotCreateDirectoryException : Exception
{
#region Constructor & destructor
/// <summary>
/// Initializes a new instance of the <see cref="CannotCreateDirectoryException"/> class.
/// </summary>
/// <param name="directory">The directory.</param>
public CannotCreateDirectoryException(string directory)
: base(string.Format(CultureInfo.CurrentUICulture, Exceptions.FailedToCreateDirectory, directory))
{
Directory = directory;
}
#endregion
#region Properties
/// <summary>
/// Gets the directory.
/// </summary>
/// <value>The directory.</value>
public string Directory { get; private set; }
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.