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

PermissionDeniedException path parameter changes

parent 1e6e59cb
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,11 @@ import org.springframework.web.bind.annotation.ResponseStatus; ...@@ -11,8 +11,11 @@ import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.FORBIDDEN) @ResponseStatus(value = HttpStatus.FORBIDDEN)
public class PermissionDeniedException extends VoSpaceErrorSummarizableException { public class PermissionDeniedException extends VoSpaceErrorSummarizableException {
public PermissionDeniedException(String path) { public PermissionDeniedException(String errorDetail) {
super("Path: " + path, super(errorDetail, VOSpaceFaultEnum.PERMISSION_DENIED);
VOSpaceFaultEnum.PERMISSION_DENIED); }
public static PermissionDeniedException forPath(String path) {
return new PermissionDeniedException("Path: " + path);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment