Skip to content

Commit

Permalink
Merge pull request #26 from aol/grizzly_exception_mapper
Browse files Browse the repository at this point in the history
Grizzly exception mapper
  • Loading branch information
edeegan committed Jun 13, 2015
2 parents bb41978 + c04e29e commit 12af447
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.57
version=0.58
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public JerseyRestApplication() {
}

public JerseyRestApplication(List<Object> allResources,List<String> packages, List<Class> resources) {

if (allResources != null) {
for (Object next : allResources) {
if(isSingleton(next))
Expand All @@ -42,7 +43,11 @@ public JerseyRestApplication(List<Object> allResources,List<String> packages, Li
}
}
property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);
packages.stream().forEach( e -> packages(e));

//http://stackoverflow.com/questions/25755773/bean-validation-400-errors-are-returning-default-error-page-html-instead-of-re
property(ServerProperties.RESPONSE_SET_STATUS_OVER_SEND_ERROR, "true");

packages.stream().forEach( e -> packages(e));
resources.stream().forEach( e -> register(e));

}
Expand Down

0 comments on commit 12af447

Please sign in to comment.