NCBACK-9 add Validator,Add new enums with codes
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2025-12-10 02:37:31 +07:00
parent 92d0cbbf3b
commit c2ffe08e7d
11 changed files with 327 additions and 27 deletions
@@ -1,7 +1,23 @@
package ru.soune.no_copy.exception;
import lombok.Getter;
@Getter
public class UserAlreadyExistsException extends RuntimeException {
public UserAlreadyExistsException(String message) {
private final String message;
private final Integer messageId;
private final Integer messageCode;
private final String messageDescription;
public UserAlreadyExistsException(String message, Integer messageId, Integer messageCode, String messageDescription) {
super(message);
this.message = message;
this.messageId = messageId;
this.messageCode = messageCode;
this.messageDescription = messageDescription;
}
}