Skip to content
Snippets Groups Projects

Reword available explanation

13 files
+ 78
68
Compare changes
  • Side-by-side
  • Inline

Files

@@ -2,13 +2,12 @@ package nl.tudelft.ewi.tam.controllers;
@@ -2,13 +2,12 @@ package nl.tudelft.ewi.tam.controllers;
import nl.tudelft.ewi.tam.exceptions.CourseAlreadyExistsException;
import nl.tudelft.ewi.tam.exceptions.CourseAlreadyExistsException;
import nl.tudelft.ewi.tam.exceptions.CourseNotFoundException;
import nl.tudelft.ewi.tam.exceptions.CourseNotFoundException;
import nl.tudelft.ewi.tam.exceptions.DateNoAvailabilityException;
import nl.tudelft.ewi.tam.exceptions.AvailabilityNotAllowedException;
import nl.tudelft.ewi.tam.exceptions.GdprAcceptedException;
import nl.tudelft.ewi.tam.exceptions.GdprAcceptedException;
import nl.tudelft.ewi.tam.exceptions.LimitsNotFoundException;
import nl.tudelft.ewi.tam.exceptions.LimitsNotFoundException;
import nl.tudelft.ewi.tam.exceptions.NoteNotFoundException;
import nl.tudelft.ewi.tam.exceptions.NoteNotFoundException;
import nl.tudelft.ewi.tam.exceptions.PrerequisitesNotFoundException;
import nl.tudelft.ewi.tam.exceptions.PrerequisitesNotFoundException;
import nl.tudelft.ewi.tam.exceptions.QuarterNotActiveException;
import nl.tudelft.ewi.tam.exceptions.QuarterNotActiveException;
import nl.tudelft.ewi.tam.exceptions.QuarterNotAvailableException;
import nl.tudelft.ewi.tam.exceptions.UserNotFoundException;
import nl.tudelft.ewi.tam.exceptions.UserNotFoundException;
import org.everit.json.schema.ValidationException;
import org.everit.json.schema.ValidationException;
import org.json.JSONException;
import org.json.JSONException;
@@ -62,7 +61,7 @@ public class RestResponseExceptionHandler extends ResponseEntityExceptionHandler
@@ -62,7 +61,7 @@ public class RestResponseExceptionHandler extends ResponseEntityExceptionHandler
* @return a {@link ResponseEntity} which represents the HTTP response
* @return a {@link ResponseEntity} which represents the HTTP response
*/
*/
@ExceptionHandler({GdprAcceptedException.class, CourseAlreadyExistsException.class,
@ExceptionHandler({GdprAcceptedException.class, CourseAlreadyExistsException.class,
QuarterNotActiveException.class, QuarterNotAvailableException.class, DateNoAvailabilityException.class})
QuarterNotActiveException.class, AvailabilityNotAllowedException.class})
protected ResponseEntity<Object> handleGdprAccepted(final RuntimeException excep, final WebRequest request) {
protected ResponseEntity<Object> handleGdprAccepted(final RuntimeException excep, final WebRequest request) {
return handleExceptionInternal(excep, excep.getMessage(), new HttpHeaders(), HttpStatus.BAD_REQUEST, request);
return handleExceptionInternal(excep, excep.getMessage(), new HttpHeaders(), HttpStatus.BAD_REQUEST, request);
}
}
Loading