ru.foodtechlab.lib.auth.service.domain.confirmationCode.exceptions.ConfirmationCodeIsExpiredException Maven / Gradle / Ivy
package ru.foodtechlab.lib.auth.service.domain.confirmationCode.exceptions;
import com.rcore.domain.commons.exception.BadRequestDomainException;
import ru.foodtechlab.lib.auth.service.domain.Domain;
import java.time.Instant;
import java.time.LocalDateTime;
public class ConfirmationCodeIsExpiredException extends BadRequestDomainException {
public ConfirmationCodeIsExpiredException(String code, Instant expiredAt) {
super(new Error(
Domain.CONFIRMATION_CODE,
ConfirmationCodeErrorReason.CONFIRMATION_CODE_IS_EXPIRED.name(),
"Confirmation code " + code + " is expired at " + expiredAt.toString()
));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy