DSInternals/Src/DSInternals.Common/Exceptions/SchemaAttributeNotFoundExce...

31 lines
847 B
C#
Raw Normal View History

2015-12-26 22:44:43 +00:00
namespace DSInternals.Common.Exceptions
{
using DSInternals.Common.Properties;
using System;
[Serializable]
public sealed class SchemaAttributeNotFoundException : DirectoryException
{
public object AttributeIdentifier
{
get;
private set;
}
2016-10-01 19:58:38 +00:00
public SchemaAttributeNotFoundException(string attributeName) : base(null)
2015-12-26 22:44:43 +00:00
{
this.AttributeIdentifier = attributeName;
}
public SchemaAttributeNotFoundException(int attributeId)
2016-10-01 19:58:38 +00:00
: base(null)
2015-12-26 22:44:43 +00:00
{
this.AttributeIdentifier = attributeId;
}
public override string Message
{
get
{
return string.Format(Resources.AttributeNotFoundMessageFormat, this.AttributeIdentifier);
}
}
}
}