fixed show phone number
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user