diff options
author | crupest <crupest@outlook.com> | 2020-01-29 18:38:41 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-29 18:38:41 +0800 |
commit | 81c261b59016e15d320ad963882afe4d9c7b5f7d (patch) | |
tree | dd1cd091ecc2c80943735af4b71b53ef26fc7eee /Timeline/Services/ConfictException.cs | |
parent | 2750a3df1834c1c6623aa8c653504c7bc12cefd6 (diff) | |
download | timeline-81c261b59016e15d320ad963882afe4d9c7b5f7d.tar.gz timeline-81c261b59016e15d320ad963882afe4d9c7b5f7d.tar.bz2 timeline-81c261b59016e15d320ad963882afe4d9c7b5f7d.zip |
...
Diffstat (limited to 'Timeline/Services/ConfictException.cs')
-rw-r--r-- | Timeline/Services/ConfictException.cs | 21 |
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) { }
+ }
+}
|