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

ru.foodtechlab.lib.auth.service.domain.confirmationCode.exceptions.ExistNotConfirmedCodeException 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 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