Class TestErrorController

java.lang.Object
edu.ucsb.cs156.frontiers.controllers.TestErrorController

@Controller public class TestErrorController extends Object
Controller for testing the custom error page. This controller intentionally throws exceptions to trigger the error page.
  • Constructor Details

    • TestErrorController

      public TestErrorController()
  • Method Details

    • testError

      @GetMapping("/test-error") public String testError()
      Endpoint that intentionally throws a RuntimeException to test the custom error page.
      Returns:
      This method never returns normally as it always throws an exception
      Throws:
      RuntimeException - always thrown to trigger the error page