Skip to content
Snippets Groups Projects
Commit 52e91578 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added QuotaExceededException

parent 0a8ff8a8
No related branches found
No related tags found
No related merge requests found
package it.inaf.oats.vospace.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.INSUFFICIENT_STORAGE)
public class QuotaExceededException extends VoSpaceErrorSummarizableException {
public QuotaExceededException(String errorDetail) {
super(errorDetail, VOSpaceFaultEnum.QUOTA_EXCEEDED);
}
}
......@@ -26,7 +26,8 @@ public enum VOSpaceFaultEnum {
// additional for pushfrom
TRANSFER_FAILED("Transfer Failed", ErrorType.FATAL, "TransferFailed"),
// additional for movenode/copynode
DUPLICATE_NODE("Duplicate Node", ErrorType.FATAL, "DuplicateNode");
DUPLICATE_NODE("Duplicate Node", ErrorType.FATAL, "DuplicateNode"),
QUOTA_EXCEEDED("Quota Exceeded", ErrorType.FATAL, "QuotaExceeded");
private final String faultRepresentation;
private final ErrorType type;
......
......@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.ResponseStatus;
public abstract class VoSpaceErrorSummarizableException extends VoSpaceException {
VOSpaceFaultEnum fault;
private String detailMessage;
private final String detailMessage;
public VoSpaceErrorSummarizableException(String detailMessage, VOSpaceFaultEnum fault)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment