Powered by CloudFoundry

Exceptions Demo 1

Controller Exception Handling



The exceptions below are thrown and handled within the same Controller using its own @ExceptionHandler methods. The controller is demo1.web.ExceptionHandlingController .

To fully understand this demo, review the output in the server (console) log as you click the links below.

The behavior of this demo is the same as Demo 2 - just implemented differently.


Demo 2: Global Exception Handling - using a Controller Advice