aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/Timeline/TimelinePostDataNotExistException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline/Services/Timeline/TimelinePostDataNotExistException.cs')
-rw-r--r--BackEnd/Timeline/Services/Timeline/TimelinePostDataNotExistException.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/Timeline/TimelinePostDataNotExistException.cs b/BackEnd/Timeline/Services/Timeline/TimelinePostDataNotExistException.cs
new file mode 100644
index 00000000..177973a3
--- /dev/null
+++ b/BackEnd/Timeline/Services/Timeline/TimelinePostDataNotExistException.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace Timeline.Services.Timeline
+{
+ [Serializable]
+ public class TimelinePostDataNotExistException : Exception
+ {
+ public TimelinePostDataNotExistException() : this(null, null) { }
+ public TimelinePostDataNotExistException(string? message) : this(message, null) { }
+ public TimelinePostDataNotExistException(string? message, Exception? inner) : base(message, inner) { }
+ public TimelinePostDataNotExistException(long timelineId, long postId, long dataIndex, string? message = null, Exception? inner = null) : base(message, inner)
+ {
+ TimelineId = timelineId;
+ PostId = postId;
+ DataIndex = dataIndex;
+ }
+ protected TimelinePostDataNotExistException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+
+ public long TimelineId { get; set; }
+ public long PostId { get; set; }
+ public long DataIndex { get; set; }
+ }
+}