aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/TimelinePostDataNotExistException.cs
blob: c70f5d9c7e7f963b05ee2551e2c9c2e9dbd3e3b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;

namespace Timeline.Services
{
    [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; }
    }
}