Skip to content
Snippets Groups Projects
Commit b103499c authored by Julian Hochstetter's avatar Julian Hochstetter
Browse files

Ambiguous @ExceptionHandler method mapped

parent 986ede41
No related merge requests found
...@@ -7,6 +7,7 @@ import org.springframework.web.bind.annotation.ExceptionHandler; ...@@ -7,6 +7,7 @@ import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.ResponseStatus;
import de.thm.arsnova.exceptions.ForbiddenException; import de.thm.arsnova.exceptions.ForbiddenException;
import de.thm.arsnova.exceptions.NoContentException;
import de.thm.arsnova.exceptions.NotFoundException; import de.thm.arsnova.exceptions.NotFoundException;
import de.thm.arsnova.exceptions.UnauthorizedException; import de.thm.arsnova.exceptions.UnauthorizedException;
...@@ -27,7 +28,7 @@ public class AbstractController { ...@@ -27,7 +28,7 @@ public class AbstractController {
} }
@ResponseStatus(HttpStatus.NO_CONTENT) @ResponseStatus(HttpStatus.NO_CONTENT)
@ExceptionHandler(UnauthorizedException.class) @ExceptionHandler(NoContentException.class)
public void handleNoContentException(final Exception e, HttpServletRequest request) { public void handleNoContentException(final Exception e, HttpServletRequest request) {
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment