Class HappierCowsControllerAdvice
java.lang.Object
edu.ucsb.cs156.happiercows.advice.HappierCowsControllerAdvice
This class handles exceptions thrown by the controllers.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HappierCowsControllerAdvice
public HappierCowsControllerAdvice()
-
-
Method Details
-
handleIllegalArgumentException
@ExceptionHandler(java.lang.IllegalArgumentException.class) @ResponseStatus(BAD_REQUEST) public void handleIllegalArgumentException()
-