package de.effigenix.domain.inventory;

public sealed interface ProductionConsumptionError {

    String message();

    record StockNotFound(String message) implements ProductionConsumptionError {}
    record BatchNotFoundInStock(String message) implements ProductionConsumptionError {}
    record RemovalFailed(String message) implements ProductionConsumptionError {}
    record MovementRecordingFailed(String message) implements ProductionConsumptionError {}
    record RepositoryFailure(String message) implements ProductionConsumptionError {}
}
