From 60cf54d80e62ea9180660e5a951c569f90bc4636 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 26 Nov 2020 20:02:03 +0800 Subject: feat: Add highlight timeline entity and service. --- BackEnd/Timeline/Services/Exceptions/TimelineNotExistException.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'BackEnd/Timeline/Services/Exceptions/TimelineNotExistException.cs') diff --git a/BackEnd/Timeline/Services/Exceptions/TimelineNotExistException.cs b/BackEnd/Timeline/Services/Exceptions/TimelineNotExistException.cs index 70970b24..ef882ffe 100644 --- a/BackEnd/Timeline/Services/Exceptions/TimelineNotExistException.cs +++ b/BackEnd/Timeline/Services/Exceptions/TimelineNotExistException.cs @@ -6,7 +6,11 @@ namespace Timeline.Services.Exceptions [Serializable] public class TimelineNotExistException : EntityNotExistException { - public TimelineNotExistException() : this(null, null) { } + public TimelineNotExistException() : this((long?)null) { } + public TimelineNotExistException(long? id) : this(id, null) { } + public TimelineNotExistException(long? id, Exception? inner) : this(id, null, inner) { } + public TimelineNotExistException(long? id, string? message, Exception? inner) : base(EntityNames.Timeline, null, message, inner) { TimelineId = id; } + 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) @@ -17,5 +21,6 @@ namespace Timeline.Services.Exceptions System.Runtime.Serialization.StreamingContext context) : base(info, context) { } public string? TimelineName { get; set; } + public long? TimelineId { get; set; } } } -- cgit v1.2.3