DSInternals/Src/DSInternals.Common/Exceptions/DirectoryObjectNotFoundException.cs
MichaelGrafnetter 1c8d6dbde8 Fixed #23
2016-10-01 21:58:38 +02:00

26 lines
765 B
C#

namespace DSInternals.Common.Exceptions
{
using DSInternals.Common.Properties;
using System;
using System.Security.Principal;
[Serializable]
public sealed class DirectoryObjectNotFoundException : DirectoryObjectException
{
public DirectoryObjectNotFoundException(object objectIdentifier = null, Exception innerExcetion = null)
: base(objectIdentifier, innerExcetion)
{
}
public override string Message
{
get
{
return this.ObjectIdentifier != null ?
String.Format(Resources.ObjectWithIdentityNotFoundMessageFormat, this.ObjectIdentifier) :
Resources.ObjectNotFoundMessage;
}
}
}
}