mirror of
https://github.com/MichaelGrafnetter/DSInternals
synced 2024-12-11 08:57:17 +00:00
30 lines
733 B
C#
30 lines
733 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|