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

io.magentys.exceptions.NotAvailableException Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package io.magentys.exceptions;

/**
 * Not Available Exception for tools and memory entries
 */
public class NotAvailableException extends RuntimeException {

    /**
     * Main Contructor
     * @param message
     */
    public NotAvailableException(final String message) {
        super(message);
    }

    /**
     * Not available Memory entry for class
     * @param clazz
     */
    public NotAvailableException(final Class clazz){
        super(String.format("Tool of type: \"%s\" not found in agent's toolset... Use agent.obtains() method to assign tools to agent.",
                clazz.toString()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy