aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/ConfictException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-29 18:38:41 +0800
committercrupest <crupest@outlook.com>2020-01-29 18:38:41 +0800
commit401a0c86054711bf5ebdce7d7717c9b59bffc2fa (patch)
treedd1cd091ecc2c80943735af4b71b53ef26fc7eee /Timeline/Services/ConfictException.cs
parentb6043126fae039c58512f60a576b10925b06df4c (diff)
downloadtimeline-401a0c86054711bf5ebdce7d7717c9b59bffc2fa.tar.gz
timeline-401a0c86054711bf5ebdce7d7717c9b59bffc2fa.tar.bz2
timeline-401a0c86054711bf5ebdce7d7717c9b59bffc2fa.zip
...
Diffstat (limited to 'Timeline/Services/ConfictException.cs')
-rw-r--r--Timeline/Services/ConfictException.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Timeline/Services/ConfictException.cs b/Timeline/Services/ConfictException.cs
new file mode 100644
index 00000000..dcd77366
--- /dev/null
+++ b/Timeline/Services/ConfictException.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 ConfictException : Exception
+ {
+ public ConfictException() : base(Resources.Services.Exception.ConfictException) { }
+ public ConfictException(string message) : base(message) { }
+ public ConfictException(string message, Exception inner) : base(message, inner) { }
+ protected ConfictException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+ }
+}