|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CannotSetPropertyValueException.cs" company="Catel development team">
// Copyright (c) 2008 - 2011 Catel development team. All rights reserved.
// </copyright>
// <summary>
// Exception in case a property value cannot be set.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using System;
using Catel.Properties;
namespace Catel.Reflection
{
/// <summary>
/// Exception in case a property value cannot be set.
/// </summary>
public class CannotSetPropertyValueException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="CannotSetPropertyValueException"/> class.
/// </summary>
/// <param name="propertyName">Name of the property.</param>
public CannotSetPropertyValueException(string propertyName)
: base(string.Format(Exceptions.CannotSetPropertyValueException, propertyName))
{
PropertyName = propertyName;
}
#region Properties
/// <summary>
/// Gets the name of the property.
/// </summary>
/// <value>The name of the property.</value>
public string PropertyName { 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.