DSInternals/Src/DSInternals.Common/Exceptions/DirectoryObjectOperationException.cs

30 lines
733 B
C#
Raw Normal View History

2015-12-26 22:44:43 +00:00
using DSInternals.Common.Properties;
using System;
using System.Security.Principal;
namespace DSInternals.Common.Exceptions
{
[Serializable]
public class DirectoryObjectOperationException : DirectoryObjectException
{
public string Reason
{
get;
private set;
}
public DirectoryObjectOperationException(string reason, object objectIdentifier)
: base(objectIdentifier)
{
this.Reason = reason;
}
public override string Message
{
get
{
return String.Format(Resources.OperationExceptionMessageFormat, this.Reason, this.ObjectIdentifier);
}
}
}
}