fixed show phone number

This commit is contained in:
SlimusMinus
2026-10-27 22:49:16 +03:00
parent aa7c9f25f0
commit 1cd72fbec4
27 changed files with 1054 additions and 15 deletions

View File

@@ -9,10 +9,17 @@ public class ApiException extends RuntimeException {
private final ErrorCode errorCode;
private final HttpStatus status;
/** Для 429: через сколько секунд повторить (заголовок Retry-After); null — не указывать. */
private final Long retryAfterSeconds;
public ApiException(ErrorCode errorCode, String message, HttpStatus status) {
this(errorCode, message, status, null);
}
public ApiException(ErrorCode errorCode, String message, HttpStatus status, Long retryAfterSeconds) {
super(message);
this.errorCode = errorCode;
this.status = status;
this.retryAfterSeconds = retryAfterSeconds;
}
}