From 1a47ff8094ee414a47aebd310826906d89428a09 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 30 May 2008 12:27:06 +0000 Subject: * This is Melanie's XEngine script engine. I've not tested this real well, however, it's confirmed to compile and OpenSimulator to run successfully without this script engine active. --- ThirdParty/SmartThreadPool/Exceptions.cs | 81 ++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 ThirdParty/SmartThreadPool/Exceptions.cs (limited to 'ThirdParty/SmartThreadPool/Exceptions.cs') diff --git a/ThirdParty/SmartThreadPool/Exceptions.cs b/ThirdParty/SmartThreadPool/Exceptions.cs new file mode 100644 index 0000000..c454709 --- /dev/null +++ b/ThirdParty/SmartThreadPool/Exceptions.cs @@ -0,0 +1,81 @@ +// Ami Bar +// amibar@gmail.com + +using System; +using System.Runtime.Serialization; + +namespace Amib.Threading +{ + #region Exceptions + + /// + /// Represents an exception in case IWorkItemResult.GetResult has been canceled + /// + [Serializable] + public sealed class WorkItemCancelException : ApplicationException + { + public WorkItemCancelException() : base() + { + } + + public WorkItemCancelException(string message) : base(message) + { + } + + public WorkItemCancelException(string message, Exception e) : base(message, e) + { + } + + public WorkItemCancelException(SerializationInfo si, StreamingContext sc) : base(si, sc) + { + } + } + + /// + /// Represents an exception in case IWorkItemResult.GetResult has been timed out + /// + [Serializable] + public sealed class WorkItemTimeoutException : ApplicationException + { + public WorkItemTimeoutException() : base() + { + } + + public WorkItemTimeoutException(string message) : base(message) + { + } + + public WorkItemTimeoutException(string message, Exception e) : base(message, e) + { + } + + public WorkItemTimeoutException(SerializationInfo si, StreamingContext sc) : base(si, sc) + { + } + } + + /// + /// Represents an exception in case IWorkItemResult.GetResult has been timed out + /// + [Serializable] + public sealed class WorkItemResultException : ApplicationException + { + public WorkItemResultException() : base() + { + } + + public WorkItemResultException(string message) : base(message) + { + } + + public WorkItemResultException(string message, Exception e) : base(message, e) + { + } + + public WorkItemResultException(SerializationInfo si, StreamingContext sc) : base(si, sc) + { + } + } + + #endregion +} -- cgit v1.1