DSInternals/Src/DSInternals.Common/Exceptions/SchemaAttributeNotFoundException.cs
2015-12-26 23:44:43 +01:00

30 lines
809 B
C#

namespace DSInternals.Common.Exceptions
{
using DSInternals.Common.Properties;
using System;
[Serializable]
public sealed class SchemaAttributeNotFoundException : DirectoryException
{
public object AttributeIdentifier
{
get;
private set;
}
public SchemaAttributeNotFoundException(string attributeName)
{
this.AttributeIdentifier = attributeName;
}
public SchemaAttributeNotFoundException(int attributeId)
{
this.AttributeIdentifier = attributeId;
}
public override string Message
{
get
{
return string.Format(Resources.AttributeNotFoundMessageFormat, this.AttributeIdentifier);
}
}
}
}