using System;
using System.Runtime.Serialization;
namespace Amib.Threading
{
#region Exceptions
///
/// Represents an exception in case IWorkItemResult.GetResult has been canceled
///
public sealed partial class WorkItemCancelException : Exception
{
public WorkItemCancelException()
{
}
public WorkItemCancelException(string message)
: base(message)
{
}
public WorkItemCancelException(string message, Exception e)
: base(message, e)
{
}
}
///
/// Represents an exception in case IWorkItemResult.GetResult has been timed out
///
public sealed partial class WorkItemTimeoutException : Exception
{
public WorkItemTimeoutException()
{
}
public WorkItemTimeoutException(string message)
: base(message)
{
}
public WorkItemTimeoutException(string message, Exception e)
: base(message, e)
{
}
}
///
/// Represents an exception in case IWorkItemResult.GetResult has been timed out
///
public sealed partial class WorkItemResultException : Exception
{
public WorkItemResultException()
{
}
public WorkItemResultException(string message)
: base(message)
{
}
public WorkItemResultException(string message, Exception e)
: base(message, e)
{
}
}
///
/// Represents an exception in case IWorkItemResult.GetResult has been canceled
///
[Serializable]
public sealed partial class WorkItemCancelException
{
public WorkItemCancelException(SerializationInfo si, StreamingContext sc)
: base(si, sc)
{
}
}
///
/// Represents an exception in case IWorkItemResult.GetResult has been timed out
///
[Serializable]
public sealed partial class WorkItemTimeoutException
{
public WorkItemTimeoutException(SerializationInfo si, StreamingContext sc)
: base(si, sc)
{
}
}
///
/// Represents an exception in case IWorkItemResult.GetResult has been timed out
///
[Serializable]
public sealed partial class WorkItemResultException
{
public WorkItemResultException(SerializationInfo si, StreamingContext sc)
: base(si, sc)
{
}
}
#endregion
}