mirror of
https://github.com/MichaelGrafnetter/DSInternals
synced 2025-02-15 18:36:49 +00:00
30 lines
809 B
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|