package com.codebyte.api.item.service;

import com.codebyte.api.common.error.ApiException;
import com.codebyte.api.common.error.ErrorCode;
import java.util.UUID;

/** Thrown when a full-replace presents a stale optimistic-lock version. */
public class ItemVersionConflictException extends ApiException {

    public ItemVersionConflictException(UUID id) {
        super(ErrorCode.ITEM_VERSION_CONFLICT, "Item %s was modified concurrently".formatted(id));
    }
}
