package de.cannamanage.service.exception;

/**
 * Thrown when attempting to assign more prevention officers than the club limit allows.
 * Maps to HTTP 409 Conflict.
 */
public class PreventionOfficerLimitExceededException extends RuntimeException {

    private final int maxAllowed;

    public PreventionOfficerLimitExceededException(int maxAllowed) {
        super("Prevention officer limit exceeded. Maximum allowed: " + maxAllowed);
        this.maxAllowed = maxAllowed;
    }

    public int getMaxAllowed() {
        return maxAllowed;
    }
}
