@ExceptionHandler({RegionNotFoundException.class,ResourceNotFoundException.class}) @ResponseBody @ResponseStatus(HttpStatus.NOT_FOUND) public String handle(final RuntimeException e){
  return convertErrorAsJson(e.getMessage());
}

@ ExceptionHandler ( { RegionNotFoundException . class , ResourceNotFoundException . class } ) @ ResponseBody @ ResponseStatus ( HttpStatus . NOT_FOUND ) public String handle ( final RuntimeException e ) { return convertErrorAsJson ( e . getMessage ( ) ) ; }
handles both resourcenotfoundexceptions and specifically , regionnotfoundexceptions , occurring when a resource or a region ( a . k . a . resource ) does not exist in gemfire . < p / >
