Class HappierCowsControllerAdvice

java.lang.Object
edu.ucsb.cs156.happiercows.advice.HappierCowsControllerAdvice

@RestControllerAdvice public class HappierCowsControllerAdvice extends Object
This class handles exceptions thrown by the controllers.
  • Constructor Details

    • HappierCowsControllerAdvice

      public HappierCowsControllerAdvice()
  • Method Details

    • handleIllegalArgumentException

      @ExceptionHandler(IllegalArgumentException.class) @ResponseStatus(BAD_REQUEST) public void handleIllegalArgumentException()