Skip to content
FileNotFoundException.java 554 B
Newer Older
/*
 * This file is part of vospace-file-service
 * Copyright (C) 2021 Istituto Nazionale di Astrofisica
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
package it.inaf.ia2.transfer.exception;

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

@ResponseStatus(HttpStatus.NOT_FOUND)
public class FileNotFoundException extends JobException {

    public FileNotFoundException(String path) {
        super(Type.FATAL, "Node Not Found");
        setErrorDetail("NodeNotFound Path: " + path);
    }
}