From 4a46206ea5f004ecb595de4bfd573b6263ac462b Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 17 Jun 2020 17:10:40 +0800 Subject: refactor(back): Refactor timeline service. --- .../Services/Exceptions/TimelinePostNoDataException.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Timeline/Services/Exceptions/TimelinePostNoDataException.cs (limited to 'Timeline/Services/Exceptions/TimelinePostNoDataException.cs') diff --git a/Timeline/Services/Exceptions/TimelinePostNoDataException.cs b/Timeline/Services/Exceptions/TimelinePostNoDataException.cs new file mode 100644 index 00000000..c4b6bf62 --- /dev/null +++ b/Timeline/Services/Exceptions/TimelinePostNoDataException.cs @@ -0,0 +1,15 @@ +using System; + +namespace Timeline.Services.Exceptions +{ + [Serializable] + public class TimelinePostNoDataException : Exception + { + public TimelinePostNoDataException() : this(null, null) { } + public TimelinePostNoDataException(string? message) : this(message, null) { } + public TimelinePostNoDataException(string? message, Exception? inner) : base(Resources.Services.Exceptions.TimelineNoDataException.AppendAdditionalMessage(message), inner) { } + protected TimelinePostNoDataException( + System.Runtime.Serialization.SerializationInfo info, + System.Runtime.Serialization.StreamingContext context) : base(info, context) { } + } +} -- cgit v1.2.3