We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 670f3ff commit 185fe8fCopy full SHA for 185fe8f
_posts/2015-03-27-error-handling.md
@@ -22,12 +22,12 @@ public class BasicApplication extends Application {
22
protected void onInit() {
23
// throw a programmatically exception
24
GET("/exception", routeContext -> {
25
- throw new RuntimeException("My programmatically error");
+ throw new RuntimeException("My programmatically error");
26
});
27
28
// throw an exception that gets handled by a registered ExceptionHandler
29
GET("/whoops", routeContext -> {
30
- throw new ForbiddenException("You didn't say the magic word!");
+ throw new ForbiddenException("You didn't say the magic word!");
31
32
33
// register a custom ExceptionHandler
0 commit comments