mirror of
https://github.com/MichaelGrafnetter/DSInternals
synced 2025-01-05 13:40:10 +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);
|
|
}
|
|
}
|
|
}
|
|
} |