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

org.opensearch.ml.common.exception.MLResourceNotFoundException Maven / Gradle / Ivy

There is a newer version: 2.17.1.0
Show newest version
/*
 * Copyright OpenSearch Contributors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.opensearch.ml.common.exception;

/**
 * This exception is thrown when a resource is not found.
 * Won't count this exception in stats.
 */
public class MLResourceNotFoundException extends MLException {

    /**
     * Constructor with error message.
     * @param message message of the exception
     */
    public MLResourceNotFoundException(String message) {
        super(message);
        countedInStats(false);// don't count resource not found exception in stats
    }

    /**
     * Constructor with specified cause.
     * @param cause exception cause
     */
    public MLResourceNotFoundException(Throwable cause) {
        super(cause);
        countedInStats(false);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy