/// <summary>
 /// Initializes a new instance of the <see cref="InvalidEntityArgumentException" /> class.
 /// </summary>
 /// <param name="paramName">Name of the parameter.</param>
 /// <param name="expectedType">The expected entity identifier type.</param>
 public InvalidEntityArgumentException(string paramName, Guid expectedType) : base(
         $"Invalid entity identifier type, expected type to be {EntityTypeRegistry.GetTypeName(expectedType)}.",
         paramName)
 {
 }
Пример #2
0
 /// <inheritdoc />
 public override string ToString()
 {
     return(IsEmpty
         ? "(Empty)"
         : $"(Type = {EntityTypeRegistry.GetTypeName(Type)}, Handle = {(IsInvalidHandle ? "Invalid" : Handle.ToString())})");
 }