aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/ConflictException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-30 20:26:52 +0800
committercrupest <crupest@outlook.com>2020-01-30 20:26:52 +0800
commit52acf41e331ddbd66befed4692c804b754ba7d5c (patch)
tree538ceea06640f501d2a950cac813c10561036e4d /Timeline/Services/ConflictException.cs
parentabde51b167f17301c25e32ae247e7909c0dc9367 (diff)
downloadtimeline-52acf41e331ddbd66befed4692c804b754ba7d5c.tar.gz
timeline-52acf41e331ddbd66befed4692c804b754ba7d5c.tar.bz2
timeline-52acf41e331ddbd66befed4692c804b754ba7d5c.zip
...
Diffstat (limited to 'Timeline/Services/ConflictException.cs')
-rw-r--r--Timeline/Services/ConflictException.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Timeline/Services/ConflictException.cs b/Timeline/Services/ConflictException.cs
new file mode 100644
index 00000000..6ede183a
--- /dev/null
+++ b/Timeline/Services/ConflictException.cs
@@ -0,0 +1,21 @@
+using System;
+
+namespace Timeline.Services
+{
+ /// <summary>
+ /// Thrown when a resource already exists and conflicts with the given resource.
+ /// </summary>
+ /// <remarks>
+ /// For example a username already exists and conflicts with the given username.
+ /// </remarks>
+ [Serializable]
+ public class ConflictException : Exception
+ {
+ public ConflictException() : base(Resources.Services.Exception.ConflictException) { }
+ public ConflictException(string message) : base(message) { }
+ public ConflictException(string message, Exception inner) : base(message, inner) { }
+ protected ConflictException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+ }
+}