From dcd653c36a1b39c33d31f9e27535ff6e2c435bd8 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Sun, 7 Apr 2019 15:35:51 -0400 Subject: [PATCH] Tweak README. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d331e95..1966c9a 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Returning a success response: URI location = ... //URI of the new resource return GXOutboundSuccessResponse.newCREATEResponse(location) - .withMessage("Context successfully created.") + .withMessage("Resource successfully created.") .ofType(MediaType.APPLICATION_JSON) .build(); } @@ -45,7 +45,7 @@ Throwing an exception: public Response create(...) { //Oh no, something failed here - GXOutboundErrorResponse.throwException(new RMContextAlreadyExistException("Context already exists.")); + GXOutboundErrorResponse.throwException(new MyCustomException("Resource already exists.")); } ```