protected override void CreateValidationMap(Error error, ValidationException exception)
 {
     error.ExtraParameters = exception.Messages;
     base.CreateValidationMap(error, exception);
     error.Title = exception.Message;
     Logger.LogWarning($"Validation error: {exception.GetExceptionMessages()}, {exception.ToString()}");
     AppLogger.LogWarning($"Er is een validatiefout opgetreden. {exception.GetExceptionMessages()}");
 }
        protected override void CreateValidationMap(Error error, ValidationException exception)
        {
            error.ExtraInfo = exception.Messages;
            base.CreateValidationMap(error, exception);

            error.Identifier = GetIdentifier();
            error.Title      = exception.Message;
            Logger.LogWarning($"Validation error: {exception.GetExceptionMessages()}, {exception}");
        }
コード例 #3
0
        protected override void CreateValidationMap(Error error, ValidationException exception)
        {
            base.CreateValidationMap(error, exception);

            error.Identifier = GetIdentifier();
            error.Title      = exception.Message;
            SetErrorTypeReferenceUri(error);

            _logger.LogWarning($"Validation error: {exception.GetExceptionMessages()}, {exception}");
        }