diff options
author | crupest <crupest@outlook.com> | 2020-12-17 23:49:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 23:49:16 +0800 |
commit | 3b3c7c170f0070b0db85834b6c913b9060996d1d (patch) | |
tree | f5ce5a6ffebab52a4a990faa0d12937244cc3185 /BackEnd/Timeline/Services/Exceptions/TimelineNotExistException.cs | |
parent | 828da7516df1a7612c3b24b4a27ba680eaf821f8 (diff) | |
parent | 5cbc306fc82bf14157ced4ff8b935191d20dae5d (diff) | |
download | timeline-3b3c7c170f0070b0db85834b6c913b9060996d1d.tar.gz timeline-3b3c7c170f0070b0db85834b6c913b9060996d1d.tar.bz2 timeline-3b3c7c170f0070b0db85834b6c913b9060996d1d.zip |
Merge pull request #192 from crupest/highlight-timeline
Highlight timeline.
Diffstat (limited to 'BackEnd/Timeline/Services/Exceptions/TimelineNotExistException.cs')
-rw-r--r-- | BackEnd/Timeline/Services/Exceptions/TimelineNotExistException.cs | 7 |
1 files changed, 6 insertions, 1 deletions
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; }
}
}
|