private static object GetValidationDetails(object invalidObject, ValidationResultSet result)
 {
     return(new
     {
         Object = invalidObject,
         Result = result
     });
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="invalidObject">The object that failed validation.</param>
        /// <param name="notifyClient">Indicates if client should be notified.</param>
        /// <param name="result">The set of invalidations associated with the exception.</param>
        public ValidationResultException(
            object invalidObject,
            bool notifyClient,
            ValidationResultSet result) : base(
                "Validation Exceptions",
                "Validations",
                GetValidationDetails(invalidObject, result))
        {
            InvalidObject = invalidObject ?? throw new ArgumentNullException(nameof(invalidObject));
            Result        = result ?? throw new ArgumentNullException(nameof(result));

            NotifyClient = notifyClient;
        }