diff options
author | 杨宇千 <crupest@outlook.com> | 2019-11-03 16:51:10 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-11-03 16:51:10 +0800 |
commit | 640b80e501ef7f6240afdd968de4b23cd57f2ae1 (patch) | |
tree | 3e661387665f6592cf10b2cd93da217d7f16e6e5 /Timeline/Services/TimelineNotExistException.cs | |
parent | 71a444547673946a140db5bd0ed819932e392ccd (diff) | |
download | timeline-640b80e501ef7f6240afdd968de4b23cd57f2ae1.tar.gz timeline-640b80e501ef7f6240afdd968de4b23cd57f2ae1.tar.bz2 timeline-640b80e501ef7f6240afdd968de4b23cd57f2ae1.zip |
WIP: Design the timeline service interface.
Diffstat (limited to 'Timeline/Services/TimelineNotExistException.cs')
-rw-r--r-- | Timeline/Services/TimelineNotExistException.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Timeline/Services/TimelineNotExistException.cs b/Timeline/Services/TimelineNotExistException.cs new file mode 100644 index 00000000..6dfd0bab --- /dev/null +++ b/Timeline/Services/TimelineNotExistException.cs @@ -0,0 +1,19 @@ +using System;
+
+namespace Timeline.Services
+{
+ [Serializable]
+ public class TimelineNotExistException : Exception
+ {
+ public TimelineNotExistException() : base(Resources.Services.Exception.TimelineNotExistException) { }
+ public TimelineNotExistException(string name)
+ : base(Resources.Services.Exception.TimelineNotExistException) { Name = name; }
+ public TimelineNotExistException(string name, Exception inner)
+ : base(Resources.Services.Exception.TimelineNotExistException, inner) { Name = name; }
+ protected TimelineNotExistException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+
+ public string? Name { get; set; }
+ }
+}
|