package org.initialde.yakasave.Domain.Exceptions;

public class SavingsFundClosedException extends RuntimeException {
    public SavingsFundClosedException() {
        super("Cette cagnotte a été fermé.");
    }

    public static void throwIfIsClosed(boolean isActive){
        if (!isActive){
            throw new SavingsFundClosedException();
        }
    }
}
