aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/TimelinePostNotExistException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-09 00:21:28 +0800
committercrupest <crupest@outlook.com>2020-03-09 00:21:28 +0800
commit893ed4eee63997f2d91d6715d4355d9f767b2c40 (patch)
tree16c0dc235cfba2ec1fa17e3cb3bfbbead348cb3e /Timeline/Services/TimelinePostNotExistException.cs
parent40df655a8d9b85a7f08ab221d5f85aaa20d7272e (diff)
downloadtimeline-893ed4eee63997f2d91d6715d4355d9f767b2c40.tar.gz
timeline-893ed4eee63997f2d91d6715d4355d9f767b2c40.tar.bz2
timeline-893ed4eee63997f2d91d6715d4355d9f767b2c40.zip
...
Diffstat (limited to 'Timeline/Services/TimelinePostNotExistException.cs')
-rw-r--r--Timeline/Services/TimelinePostNotExistException.cs11
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;
}
}