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 an item with the given id does not exist. */
public class ItemNotFoundException extends ApiException {

    public ItemNotFoundException(UUID id) {
        super(ErrorCode.ITEM_NOT_FOUND, "Item %s not found".formatted(id));
    }
}
