@ExceptionHandler(TypeNotFoundException.class) @ResponseStatus(value=HttpStatus.NOT_FOUND) public @ResponseBody ErrorResponse resolveTypeDescriptorNotFoundException(TypeNotFoundException e) throws IOException {
  if (logger.isLoggable(Level.FINE))   logger.fine("type descriptor for typeName: " + e.getTypeName() + " not found, returning error response");
  return new ErrorResponse(new ErrorMessage("Type: " + e.getTypeName() + " is not registered in space"));
}

@ ExceptionHandler ( TypeNotFoundException . class ) @ ResponseStatus ( value = HttpStatus . NOT_FOUND ) public @ ResponseBody ErrorResponse resolveTypeDescriptorNotFoundException ( TypeNotFoundException e ) throws IOException { if ( logger . isLoggable ( Level . FINE ) ) logger . fine ( "type descriptor for typeName: " + e . getTypeName ( ) + " not found, returning error response" ) ; return new ErrorResponse ( new ErrorMessage ( "Type: " + e . getTypeName ( ) + " is not registered in space" ) ) ; }
typenotfoundexception handler , returns an error response to the client
