aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/EntityDeletedException.cs
diff options
context:
space:
mode:
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) { }
+ }
+}