aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/Exceptions/TimelineNotExistException.cs
blob: 70970b2495223c3731f0bde852846bd8c4215ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Globalization;

namespace Timeline.Services.Exceptions
{
    [Serializable]
    public class TimelineNotExistException : EntityNotExistException
    {
        public TimelineNotExistException() : this(null, null) { }
        public TimelineNotExistException(string? timelineName) : this(timelineName, null) { }
        public TimelineNotExistException(string? timelineName, Exception? inner) : this(timelineName, null, inner) { }
        public TimelineNotExistException(string? timelineName, string? message, Exception? inner = null)
            : base(EntityNames.Timeline, null, string.Format(CultureInfo.InvariantCulture, Resources.Services.Exceptions.TimelineNotExistException, timelineName ?? "").AppendAdditionalMessage(message), inner) { TimelineName = timelineName; }

        protected TimelineNotExistException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context) : base(info, context) { }

        public string? TimelineName { get; set; }
    }
}