From 27719fa2a00e041cdb957182812508464d19a9d7 Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Sun, 3 Nov 2019 16:51:10 +0800 Subject: WIP: Design the timeline service interface. --- Timeline/Services/TimelineNotExistException.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Timeline/Services/TimelineNotExistException.cs (limited to 'Timeline/Services/TimelineNotExistException.cs') 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; } + } +} -- cgit v1.2.3