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

org.schoellerfamily.gedbrowser.api.controller.exception.DataSetNotFoundException Maven / Gradle / Ivy

There is a newer version: 1.3.0-RC2
Show newest version
package org.schoellerfamily.gedbrowser.api.controller.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * @author Dick Schoeller
 */
@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "Data set not found")
public final class DataSetNotFoundException extends RuntimeException {
    /** */
    private static final long serialVersionUID = 2L;

    /** */
    private final String datasetName;

    /**
     * @param message the message to display
     * @param datasetName the dataset that was requested
     */
    public DataSetNotFoundException(final String message,
            final String datasetName) {
        super(message);
        this.datasetName = datasetName;
    }

    /**
     * @return the name of the requested dataset
     */
    public String getDatasetName() {
        return datasetName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy