diff options
author | crupest <crupest@outlook.com> | 2021-04-30 16:52:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-30 16:52:55 +0800 |
commit | a672e10faad434899d81ef9d0d0d5adbbc7841da (patch) | |
tree | 33c18e4bdad7384c748cf08be1f0569f9a8af619 /BackEnd/Timeline/Services/EntityNotExistException.cs | |
parent | b87abbb8ed0aa86a808b2f97e4d22b0ee1addd9f (diff) | |
download | timeline-a672e10faad434899d81ef9d0d0d5adbbc7841da.tar.gz timeline-a672e10faad434899d81ef9d0d0d5adbbc7841da.tar.bz2 timeline-a672e10faad434899d81ef9d0d0d5adbbc7841da.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/EntityNotExistException.cs')
-rw-r--r-- | BackEnd/Timeline/Services/EntityNotExistException.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/BackEnd/Timeline/Services/EntityNotExistException.cs b/BackEnd/Timeline/Services/EntityNotExistException.cs index 39a4f545..0c836fc4 100644 --- a/BackEnd/Timeline/Services/EntityNotExistException.cs +++ b/BackEnd/Timeline/Services/EntityNotExistException.cs @@ -1,4 +1,5 @@ using System;
+using System.Collections.Generic;
namespace Timeline.Services
{
@@ -9,19 +10,18 @@ namespace Timeline.Services /// For example, you want to get a timeline with given name but it does not exist.
/// </example>
[Serializable]
- public class EntityNotExistException : Exception
+ public class EntityNotExistException : EntityException
{
- public EntityNotExistException() : this(null, null) { }
- public EntityNotExistException(string? entityName) : this(entityName, null) { }
- public EntityNotExistException(string? entityName, Exception? inner) : this(entityName, null, inner) { }
- public EntityNotExistException(string? entityName, string? message, Exception? inner) : base(message ?? Resource.ExceptionEntityNotExist, inner)
+ public EntityNotExistException() : base() { }
+ public EntityNotExistException(string? message) : base(message) { }
+ public EntityNotExistException(string? message, Exception? inner) : base(message, inner) { }
+ public EntityNotExistException(EntityType entityType, IDictionary<string, object> constraints, string? message = null, Exception? inner = null)
+ : base(entityType, constraints, message ?? Resource.ExceptionEntityNotExist, inner)
{
- EntityName = entityName;
+
}
protected EntityNotExistException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
-
- public string? EntityName { get; }
}
}
|