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 | 27719fa2a00e041cdb957182812508464d19a9d7 (patch) | |
tree | 3e661387665f6592cf10b2cd93da217d7f16e6e5 /Timeline/Services/TimelineNameBadFormatException.cs | |
parent | cb2d9949ecc1d3c4b10295eb715a9293d493c5e2 (diff) | |
download | timeline-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.cs | 21 |
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; }
+ }
+}
|