aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/SmartThreadPool/Exceptions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ThirdParty/SmartThreadPool/Exceptions.cs')
-rw-r--r--ThirdParty/SmartThreadPool/Exceptions.cs111
1 files changed, 111 insertions, 0 deletions
diff --git a/ThirdParty/SmartThreadPool/Exceptions.cs b/ThirdParty/SmartThreadPool/Exceptions.cs
new file mode 100644
index 0000000..6c6a88b
--- /dev/null
+++ b/ThirdParty/SmartThreadPool/Exceptions.cs
@@ -0,0 +1,111 @@
1using System;
2#if !(_WINDOWS_CE)
3using System.Runtime.Serialization;
4#endif
5
6namespace Amib.Threading
7{
8 #region Exceptions
9
10 /// <summary>
11 /// Represents an exception in case IWorkItemResult.GetResult has been canceled
12 /// </summary>
13 public sealed partial class WorkItemCancelException : Exception
14 {
15 public WorkItemCancelException()
16 {
17 }
18
19 public WorkItemCancelException(string message)
20 : base(message)
21 {
22 }
23
24 public WorkItemCancelException(string message, Exception e)
25 : base(message, e)
26 {
27 }
28 }
29
30 /// <summary>
31 /// Represents an exception in case IWorkItemResult.GetResult has been timed out
32 /// </summary>
33 public sealed partial class WorkItemTimeoutException : Exception
34 {
35 public WorkItemTimeoutException()
36 {
37 }
38
39 public WorkItemTimeoutException(string message)
40 : base(message)
41 {
42 }
43
44 public WorkItemTimeoutException(string message, Exception e)
45 : base(message, e)
46 {
47 }
48 }
49
50 /// <summary>
51 /// Represents an exception in case IWorkItemResult.GetResult has been timed out
52 /// </summary>
53 public sealed partial class WorkItemResultException : Exception
54 {
55 public WorkItemResultException()
56 {
57 }
58
59 public WorkItemResultException(string message)
60 : base(message)
61 {
62 }
63
64 public WorkItemResultException(string message, Exception e)
65 : base(message, e)
66 {
67 }
68 }
69
70
71#if !(_WINDOWS_CE) && !(_SILVERLIGHT) && !(WINDOWS_PHONE)
72 /// <summary>
73 /// Represents an exception in case IWorkItemResult.GetResult has been canceled
74 /// </summary>
75 [Serializable]
76 public sealed partial class WorkItemCancelException
77 {
78 public WorkItemCancelException(SerializationInfo si, StreamingContext sc)
79 : base(si, sc)
80 {
81 }
82 }
83
84 /// <summary>
85 /// Represents an exception in case IWorkItemResult.GetResult has been timed out
86 /// </summary>
87 [Serializable]
88 public sealed partial class WorkItemTimeoutException
89 {
90 public WorkItemTimeoutException(SerializationInfo si, StreamingContext sc)
91 : base(si, sc)
92 {
93 }
94 }
95
96 /// <summary>
97 /// Represents an exception in case IWorkItemResult.GetResult has been timed out
98 /// </summary>
99 [Serializable]
100 public sealed partial class WorkItemResultException
101 {
102 public WorkItemResultException(SerializationInfo si, StreamingContext sc)
103 : base(si, sc)
104 {
105 }
106 }
107
108#endif
109
110 #endregion
111}