diff options
author | crupest <crupest@outlook.com> | 2021-05-05 16:18:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-05-05 16:18:33 +0800 |
commit | e110f4a41bd711192af28874f71f031a130f0b84 (patch) | |
tree | 08610c5476549edfbe8e9a2605b8876e026d89f5 /BackEnd/Timeline/Services/EntityException.cs | |
parent | 2a4b59c05236028ed1dc8304327b1ef484a376db (diff) | |
download | timeline-e110f4a41bd711192af28874f71f031a130f0b84.tar.gz timeline-e110f4a41bd711192af28874f71f031a130f0b84.tar.bz2 timeline-e110f4a41bd711192af28874f71f031a130f0b84.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/EntityException.cs')
-rw-r--r-- | BackEnd/Timeline/Services/EntityException.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Services/EntityException.cs b/BackEnd/Timeline/Services/EntityException.cs index 7a302e5a..c4c2d700 100644 --- a/BackEnd/Timeline/Services/EntityException.cs +++ b/BackEnd/Timeline/Services/EntityException.cs @@ -10,11 +10,12 @@ namespace Timeline.Services public EntityException() { }
public EntityException(string? message) : base(message) { }
public EntityException(string? message, Exception? inner) : base(message, inner) { }
- public EntityException(EntityType entityType, IDictionary<string, object> constraints, string? message = null, Exception? inner = null)
+ public EntityException(EntityType entityType, IDictionary<string, object>? constraints = null, string? message = null, Exception? inner = null)
: base(message, inner)
{
EntityType = entityType;
- Constraints = constraints;
+ if (constraints is not null)
+ Constraints = constraints;
}
protected EntityException(
System.Runtime.Serialization.SerializationInfo info,
|