diff options
author | crupest <crupest@outlook.com> | 2020-03-09 00:21:28 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-09 00:21:28 +0800 |
commit | c3c9618c8493349fb3d6464d69359f7be6e8ce24 (patch) | |
tree | 16c0dc235cfba2ec1fa17e3cb3bfbbead348cb3e /Timeline/Services/TimelinePostNotExistException.cs | |
parent | 540baa40d0d32d87fbba0ad351ff534fd43f2749 (diff) | |
download | timeline-c3c9618c8493349fb3d6464d69359f7be6e8ce24.tar.gz timeline-c3c9618c8493349fb3d6464d69359f7be6e8ce24.tar.bz2 timeline-c3c9618c8493349fb3d6464d69359f7be6e8ce24.zip |
...
Diffstat (limited to 'Timeline/Services/TimelinePostNotExistException.cs')
-rw-r--r-- | Timeline/Services/TimelinePostNotExistException.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Timeline/Services/TimelinePostNotExistException.cs b/Timeline/Services/TimelinePostNotExistException.cs index 97e5d550..c542e63e 100644 --- a/Timeline/Services/TimelinePostNotExistException.cs +++ b/Timeline/Services/TimelinePostNotExistException.cs @@ -12,12 +12,17 @@ namespace Timeline.Services System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
- public TimelinePostNotExistException(long id) : base(Resources.Services.Exception.TimelinePostNotExistException) { Id = id; }
+ public TimelinePostNotExistException(string timelineName, long id, bool isDelete = false) : base(Resources.Services.Exception.TimelinePostNotExistException) { TimelineName = timelineName; Id = id; IsDelete = isDelete; }
- public TimelinePostNotExistException(long id, string message) : base(message) { Id = id; }
+ public TimelinePostNotExistException(string timelineName, long id, bool isDelete, string message) : base(message) { TimelineName = timelineName; Id = id; IsDelete = isDelete; }
- public TimelinePostNotExistException(long id, string message, Exception inner) : base(message, inner) { Id = id; }
+ public TimelinePostNotExistException(string timelineName, long id, bool isDelete, string message, Exception inner) : base(message, inner) { TimelineName = timelineName; Id = id; IsDelete = isDelete; }
+ public string TimelineName { get; set; } = "";
public long Id { get; set; }
+ /// <summary>
+ /// True if the post is deleted. False if the post does not exist at all.
+ /// </summary>
+ public bool IsDelete { get; set; } = false;
}
}
|