2015-12-26 22:44:43 +00:00
|
|
|
|
namespace DSInternals.Common.Exceptions
|
|
|
|
|
{
|
|
|
|
|
using DSInternals.Common.Properties;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Security.Principal;
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public sealed class DirectoryObjectNotFoundException : DirectoryObjectException
|
|
|
|
|
{
|
2016-10-01 19:58:38 +00:00
|
|
|
|
public DirectoryObjectNotFoundException(object objectIdentifier = null, Exception innerExcetion = null)
|
|
|
|
|
: base(objectIdentifier, innerExcetion)
|
2015-12-26 22:44:43 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Message
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2016-10-01 19:58:38 +00:00
|
|
|
|
return this.ObjectIdentifier != null ?
|
|
|
|
|
String.Format(Resources.ObjectWithIdentityNotFoundMessageFormat, this.ObjectIdentifier) :
|
|
|
|
|
Resources.ObjectNotFoundMessage;
|
2015-12-26 22:44:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|