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 | 7d54e0b8b7ca84488fdcba90c68169a85b4d45c6 (patch) | |
tree | cf2fa58eef25e5bf871d8a71b15ac6694e357b54 /BackEnd/Timeline/Services/EntityException.cs | |
parent | 51e1205d3a9c72a5734a842536630cea69359107 (diff) | |
download | timeline-7d54e0b8b7ca84488fdcba90c68169a85b4d45c6.tar.gz timeline-7d54e0b8b7ca84488fdcba90c68169a85b4d45c6.tar.bz2 timeline-7d54e0b8b7ca84488fdcba90c68169a85b4d45c6.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,
|