package by.bsuir.mpp.computershop.utils;

public final class ValidationConstants {
    public static final String NON_EMPTY_STRING_REGEX = "^(?!\\s*$).+";
    public static final String EMAIL_REGEX = "^(?!\\s*$).+@(?!\\s*$).+";

    public static final String CANNOT_BE_NULL_MESSAGE = "cannot be NULL";
    public static final String CANNOT_BE_EMPTY_MESSAGE = "cannot be empty";
    public static final String CANNOT_BE_NEGATIVE_MESSAGE = "cannot be negative";

    public static final String INVALID_VALUE_MESSAGE = "invalid value";
}

@@ -283,22 +283,28 @@
  = %22
-cannot be NULL
+%D0%BD%D0%B5 %D0%BC%D0%BE%D0%B6%D0%B5%D1%82 %D0%B1%D1%8B%D1%82%D1%8C %D0%BF%D1%83%D1%81%D1%82%D1%8B%D0%BC
 %22;%0A 
@@ -364,23 +364,28 @@
  = %22
-cannot be empty
+%D0%BD%D0%B5 %D0%BC%D0%BE%D0%B6%D0%B5%D1%82 %D0%B1%D1%8B%D1%82%D1%8C %D0%BF%D1%83%D1%81%D1%82%D1%8B%D0%BC
 %22;%0A 
@@ -448,26 +448,35 @@
  = %22
-cannot be negative
+%D0%BD%D0%B5 %D0%BC%D0%BE%D0%B6%D0%B5%D1%82 %D0%B1%D1%8B%D1%82%D1%8C %D0%BE%D1%82%D1%80%D0%B8%D1%86%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D1%8B%D0%BC
 %22;%0A%0A
@@ -535,21 +535,31 @@
  = %22
-invalid value
+%D0%B8%D0%BC%D0%B5%D0%B5%D1%82 %D0%BD%D0%B5%D0%B2%D0%B5%D1%80%D0%BD%D0%BE%D0%B5 %D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5
 %22;%0A%7D

Rewrite server error messages