Class TestErrorController
java.lang.Object
edu.ucsb.cs156.frontiers.controllers.TestErrorController
Controller for testing the custom error page. This controller intentionally throws exceptions to
trigger the error page.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TestErrorController
public TestErrorController()
-
-
Method Details
-
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
-