2015-11-12 18:13:41 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Core.Exceptions
|
|
|
|
|
|
{
|
|
|
|
|
|
internal class DataOperationException<T> : Exception
|
|
|
|
|
|
{
|
|
|
|
|
|
public T Operation { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
public DataOperationException(T operation, string message)
|
2017-05-30 10:50:09 +02:00
|
|
|
|
: base(message)
|
2015-11-12 18:13:41 +01:00
|
|
|
|
{
|
|
|
|
|
|
Operation = operation;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public DataOperationException(T operation)
|
|
|
|
|
|
: base("Data operation exception: " + operation)
|
|
|
|
|
|
{
|
|
|
|
|
|
Operation = operation;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2017-07-20 11:21:28 +02:00
|
|
|
|
}
|