Skip to content

Commit 185fe8f

Browse files
committed
Formatting
1 parent 670f3ff commit 185fe8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2015-03-27-error-handling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public class BasicApplication extends Application {
2222
protected void onInit() {
2323
// throw a programmatically exception
2424
GET("/exception", routeContext -> {
25-
throw new RuntimeException("My programmatically error");
25+
throw new RuntimeException("My programmatically error");
2626
});
2727

2828
// throw an exception that gets handled by a registered ExceptionHandler
2929
GET("/whoops", routeContext -> {
30-
throw new ForbiddenException("You didn't say the magic word!");
30+
throw new ForbiddenException("You didn't say the magic word!");
3131
});
3232

3333
// register a custom ExceptionHandler

0 commit comments

Comments
 (0)