aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/TimelinePostNotExistException.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-11-07 22:06:06 +0800
committer杨宇千 <crupest@outlook.com>2019-11-07 22:06:06 +0800
commit2f36e9a1c8d6db2a808f874134c9cb7d57c3ef16 (patch)
tree48ca95c6eb5dafe44d419bbe5d0ab49396209b13 /Timeline/Services/TimelinePostNotExistException.cs
parent2852190501ea6636f93d6bc06f8eb4a11cab1077 (diff)
downloadtimeline-2f36e9a1c8d6db2a808f874134c9cb7d57c3ef16.tar.gz
timeline-2f36e9a1c8d6db2a808f874134c9cb7d57c3ef16.tar.bz2
timeline-2f36e9a1c8d6db2a808f874134c9cb7d57c3ef16.zip
Complete PersonalTimelineController and write attribute test.
Diffstat (limited to 'Timeline/Services/TimelinePostNotExistException.cs')
-rw-r--r--Timeline/Services/TimelinePostNotExistException.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Timeline/Services/TimelinePostNotExistException.cs b/Timeline/Services/TimelinePostNotExistException.cs
new file mode 100644
index 00000000..97e5d550
--- /dev/null
+++ b/Timeline/Services/TimelinePostNotExistException.cs
@@ -0,0 +1,23 @@
+using System;
+
+namespace Timeline.Services
+{
+ [Serializable]
+ public class TimelinePostNotExistException : Exception
+ {
+ public TimelinePostNotExistException() { }
+ public TimelinePostNotExistException(string message) : base(message) { }
+ public TimelinePostNotExistException(string message, Exception inner) : base(message, inner) { }
+ protected TimelinePostNotExistException(
+ 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(long id, string message) : base(message) { Id = id; }
+
+ public TimelinePostNotExistException(long id, string message, Exception inner) : base(message, inner) { Id = id; }
+
+ public long Id { get; set; }
+ }
+}