aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/TimelineNameBadFormatException.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-11-03 16:51:10 +0800
committer杨宇千 <crupest@outlook.com>2019-11-03 16:51:10 +0800
commit640b80e501ef7f6240afdd968de4b23cd57f2ae1 (patch)
tree3e661387665f6592cf10b2cd93da217d7f16e6e5 /Timeline/Services/TimelineNameBadFormatException.cs
parent71a444547673946a140db5bd0ed819932e392ccd (diff)
downloadtimeline-640b80e501ef7f6240afdd968de4b23cd57f2ae1.tar.gz
timeline-640b80e501ef7f6240afdd968de4b23cd57f2ae1.tar.bz2
timeline-640b80e501ef7f6240afdd968de4b23cd57f2ae1.zip
WIP: Design the timeline service interface.
Diffstat (limited to 'Timeline/Services/TimelineNameBadFormatException.cs')
-rw-r--r--Timeline/Services/TimelineNameBadFormatException.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Timeline/Services/TimelineNameBadFormatException.cs b/Timeline/Services/TimelineNameBadFormatException.cs
new file mode 100644
index 00000000..5120a175
--- /dev/null
+++ b/Timeline/Services/TimelineNameBadFormatException.cs
@@ -0,0 +1,21 @@
+using System;
+
+namespace Timeline.Services
+{
+ [Serializable]
+ public class TimelineNameBadFormatException : Exception
+ {
+ public TimelineNameBadFormatException()
+ : base(Resources.Services.Exception.TimelineNameBadFormatException) { }
+ public TimelineNameBadFormatException(string name)
+ : base(Resources.Services.Exception.TimelineNameBadFormatException) { Name = name; }
+ public TimelineNameBadFormatException(string name, Exception inner)
+ : base(Resources.Services.Exception.TimelineNameBadFormatException, inner) { Name = name; }
+
+ protected TimelineNameBadFormatException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+
+ public string? Name { get; set; }
+ }
+}