ru.foodtechlab.lib.auth.service.domain.confirmationCode.exceptions.ExistNotConfirmedCodeException Maven / Gradle / Ivy
package ru.foodtechlab.lib.auth.service.domain.confirmationCode.exceptions;
import com.rcore.domain.commons.exception.BadRequestDomainException;
import lombok.Getter;
import ru.foodtechlab.lib.auth.service.domain.Domain;
import java.time.LocalDateTime;
public class ExistNotConfirmedCodeException extends BadRequestDomainException {
@Getter
private LocalDateTime expiredDate;
public ExistNotConfirmedCodeException(LocalDateTime expiredDate) {
super(new Error(
Domain.CONFIRMATION_CODE,
ConfirmationCodeErrorReason.EXIST_NOT_CONFIRMED_CODE.name(),
"Exist not confirmed code"
));
this.expiredDate = expiredDate;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy