aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/EntityDeletedException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-09 18:38:46 +0800
committercrupest <crupest@outlook.com>2022-04-09 18:38:46 +0800
commit4db131899145b7aca0ea5fd36984cf1542c9619b (patch)
treee3b9729dfcc744a79f601b674ec6cecaf47dc9da /BackEnd/Timeline/Services/EntityDeletedException.cs
parentbab2b1d568a7273b6800dbe6ffd31972d5cedd24 (diff)
downloadtimeline-4db131899145b7aca0ea5fd36984cf1542c9619b.tar.gz
timeline-4db131899145b7aca0ea5fd36984cf1542c9619b.tar.bz2
timeline-4db131899145b7aca0ea5fd36984cf1542c9619b.zip
...
Diffstat (limited to 'BackEnd/Timeline/Services/EntityDeletedException.cs')
-rw-r--r--BackEnd/Timeline/Services/EntityDeletedException.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/EntityDeletedException.cs b/BackEnd/Timeline/Services/EntityDeletedException.cs
new file mode 100644
index 00000000..a31da594
--- /dev/null
+++ b/BackEnd/Timeline/Services/EntityDeletedException.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+
+namespace Timeline.Services
+{
+ /// <summary>
+ /// Thrown when an entity is deleted.
+ /// </summary>
+ [Serializable]
+ public class EntityDeletedException : EntityException
+ {
+ public EntityDeletedException() : base() { }
+ public EntityDeletedException(string? message) : base(message) { }
+ public EntityDeletedException(string? message, Exception? inner) : base(message, inner) { }
+ public EntityDeletedException(EntityType entityType, IDictionary<string, object> constraints, string? message = null, Exception? inner = null)
+ : base(entityType, constraints, message ?? Resource.ExceptionEntityNotExist, inner)
+ {
+
+ }
+ protected EntityDeletedException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+ }
+}