Tweak README.

This commit is contained in:
Manuele Simi 2019-04-07 15:35:51 -04:00
parent 30fbd2cca5
commit dcd653c36a
1 changed files with 2 additions and 2 deletions

View File

@ -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."));
}
```