Skip to content

Commit 8a86b57

Browse files
committed
Update error handling section
1 parent 3f75b23 commit 8a86b57

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ public class BasicApplication extends Application {
4040
getErrorHandler().handle(403, routeContext);
4141
}
4242

43-
});
44-
}
45-
46-
public static class ForbiddenException extends RuntimeException {
43+
});
44+
}
45+
46+
public static class ForbiddenException extends RuntimeException {
4747

4848
public ForbiddenException(String message) {
4949
super(message);
@@ -53,3 +53,5 @@ public class BasicApplication extends Application {
5353

5454
}
5555
```
56+
57+
If you want to customize the template content for the default error templates (see the list of templates names in [DefaultErrorHandler]({{ site.coreurl }}/src/main/java/ro/pippo/core/TemplateEngine.java)) then create a template with the same name in `resources\templates` folder.

0 commit comments

Comments
 (0)