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";
}

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 = "не может быть пустым";
    public static final String CANNOT_BE_EMPTY_MESSAGE = "не может быть пустым";
    public static final String CANNOT_BE_NEGATIVE_MESSAGE = "не может быть отрицательным";

    public static final String INVALID_VALUE_MESSAGE = "имеет неверное значение";
}

Rewrite server error messages