Commit 0a8ff8a8 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

PermissionDeniedException path parameter changes

parent 1e6e59cb
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -11,8 +11,11 @@ import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.FORBIDDEN)
public class PermissionDeniedException extends VoSpaceErrorSummarizableException {

    public PermissionDeniedException(String path) {
        super("Path: " + path,
                VOSpaceFaultEnum.PERMISSION_DENIED);
    public PermissionDeniedException(String errorDetail) {
        super(errorDetail, VOSpaceFaultEnum.PERMISSION_DENIED);
    }

    public static PermissionDeniedException forPath(String path) {
        return new PermissionDeniedException("Path: " + path);
    }
}