Skip to content
InvalidArgumentException.java 568 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.BAD_REQUEST)
public class InvalidArgumentException extends JobException {

    public InvalidArgumentException(String message) {
        super(Type.FATAL, "Invalid Argument");
        setErrorDetail("InvalidArgument: " + message);
    }
}