code: public static GooglePlacesException parse(String statusCode, String errorMessage) {
          Class<?> clazz = statusClassMap.get(statusCode);
          if (clazz == null)
              return null;
          try {
              if (errorMessage == null || errorMessage.isEmpty())
                  return (GooglePlacesException) clazz.newInstance();
              else {
                  Constructor<?> constructor = clazz.getConstructor(String.class);
                  return (GooglePlacesException) constructor.newInstance(errorMessage);
              }
          } catch (Exception e) {
              // Should never happen!
              throw new GooglePlacesException(e);
          }
      }
docs: Returns the correct exception from a server-given status code and error message.
  
  @param statusCode to find exception for
  @param errorMessage error message from server
  @return exception that matches the specified status code