Skip to content
Snippets Groups Projects
Commit 2d701d9f authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

Task #3637 - Added node generation for pushTo/pullTo operations in case

it doesn't exist
parent f17d8e36
No related branches found
No related tags found
No related merge requests found
package it.inaf.oats.vospace.exception;
import net.ivoa.xml.uws.v1.ErrorSummaryFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.NOT_FOUND)
public class ContainerNotFoundException extends VoSpaceException {
public class ContainerNotFoundException extends VoSpaceErrorSummarizableException {
public ContainerNotFoundException(String path) {
super("Container Not Found at path: " + path);
super("Container Not Found at path: " + path,
ErrorSummaryFactory.VOSpaceFault.NODE_NOT_FOUND);
}
}
package it.inaf.oats.vospace.exception;
import net.ivoa.xml.uws.v1.ErrorSummaryFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public class LinkFoundException extends VoSpaceException {
public class LinkFoundException extends VoSpaceErrorSummarizableException {
public LinkFoundException(String path) {
super("Link Found at path: " + path);
super("Link Found at path: " + path,
ErrorSummaryFactory.VOSpaceFault.INVALID_URI);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment