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
commit27719fa2a00e041cdb957182812508464d19a9d7 (patch)
tree3e661387665f6592cf10b2cd93da217d7f16e6e5 /Timeline/Services/TimelineNameBadFormatException.cs
parentcb2d9949ecc1d3c4b10295eb715a9293d493c5e2 (diff)
downloadtimeline-27719fa2a00e041cdb957182812508464d19a9d7.tar.gz
timeline-27719fa2a00e041cdb957182812508464d19a9d7.tar.bz2
timeline-27719fa2a00e041cdb957182812508464d19a9d7.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; }
+ }
+}