All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.axway.iron.error.ObjectNotFoundException Maven / Gradle / Ivy

There is a newer version: 0.21.0
Show newest version
package io.axway.iron.error;

import java.util.*;

/**
 * This exception is thrown when a mandatory select operation didn't found the required entity instance.
 */
public class ObjectNotFoundException extends StoreException {
    public ObjectNotFoundException(String entityName, String uniqueName, Object uniqueValue) {
        this(entityName, List.of(uniqueName), List.of(uniqueValue));
    }

    public ObjectNotFoundException(String entityName, List uniqueNames, List uniquesValues) {
        super("Object not found", args -> args.add("entityName", entityName).add("uniqueNames", uniqueNames).add("uniqueValues", uniquesValues));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy