All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.foodtechlab.lib.auth.service.domain.confirmationCode.exceptions.ConfirmationCodeIsExpiredException Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
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