From 840927cc6fe826f25de165da84876e8e676106a8 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 11 Feb 2021 20:10:56 +0800 Subject: ... --- BackEnd/Timeline/Services/TimelinePostDataNotExistException.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'BackEnd/Timeline/Services/TimelinePostDataNotExistException.cs') diff --git a/BackEnd/Timeline/Services/TimelinePostDataNotExistException.cs b/BackEnd/Timeline/Services/TimelinePostDataNotExistException.cs index eac7a771..c70f5d9c 100644 --- a/BackEnd/Timeline/Services/TimelinePostDataNotExistException.cs +++ b/BackEnd/Timeline/Services/TimelinePostDataNotExistException.cs @@ -8,8 +8,18 @@ namespace Timeline.Services 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; } } } -- cgit v1.2.3