diff options
author | 杨宇千 <crupest@outlook.com> | 2019-11-04 21:02:12 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-11-04 21:02:12 +0800 |
commit | edfc86d84da81fcabc00bb27e875f26038bf94f7 (patch) | |
tree | 3adcbc9e73cf98d6ee2ae0566ad0578b351edb5e /Timeline/Services/TimelineAlreadyExistException.cs | |
parent | 640b80e501ef7f6240afdd968de4b23cd57f2ae1 (diff) | |
download | timeline-edfc86d84da81fcabc00bb27e875f26038bf94f7.tar.gz timeline-edfc86d84da81fcabc00bb27e875f26038bf94f7.tar.bz2 timeline-edfc86d84da81fcabc00bb27e875f26038bf94f7.zip |
Complete designing timeline service though there may be many bugs in the design.
Diffstat (limited to 'Timeline/Services/TimelineAlreadyExistException.cs')
-rw-r--r-- | Timeline/Services/TimelineAlreadyExistException.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Timeline/Services/TimelineAlreadyExistException.cs b/Timeline/Services/TimelineAlreadyExistException.cs new file mode 100644 index 00000000..c2dea1f9 --- /dev/null +++ b/Timeline/Services/TimelineAlreadyExistException.cs @@ -0,0 +1,17 @@ +using System;
+
+namespace Timeline.Services
+{
+ [Serializable]
+ public class TimelineAlreadyExistException : Exception
+ {
+ public TimelineAlreadyExistException() : base(Resources.Services.Exception.TimelineAlreadyExistException) { }
+ public TimelineAlreadyExistException(string name) : base(Resources.Services.Exception.TimelineAlreadyExistException) { Name = name; }
+ public TimelineAlreadyExistException(string name, Exception inner) : base(Resources.Services.Exception.TimelineAlreadyExistException, inner) { Name = name; }
+ protected TimelineAlreadyExistException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+
+ public string? Name { get; set; }
+ }
+}
|