From a0a759dfde385c193a793246c81f23b9999175f6 Mon Sep 17 00:00:00 2001 From: Rachel Walker Date: Tue, 4 Dec 2012 14:52:45 -0800 Subject: [PATCH] Modified README --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1c2bb26..61e0a4c 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,12 @@ ## How to use spring-restful-exception-handler Under PROJECT/resources create a file called *error.template*. Inside this file, place the formatted error template you want to return when a custom exception is thrown. If no custom template is given, the following default template will be used: -``` - -%s -``` + +`` +`` +`%s` +`` + Annotate the custom exception class with `@Exception(*httpStatus*, *contentType*)`. The defaults are `httpStatus = HttpStatus.INTERNAL_SERVER_ERROR`