class_docstr: Geocoder using the Geocod.io API.
  
  Documentation at:
      https://www.geocod.io/docs/
  
  Pricing details:
      https://www.geocod.io/pricing/
  
  .. versionadded:: 2.2
class_docstr_tok: ["Geocoder","using","the","Geocod.io","API",".","Documentation","at",":","https",":","\/\/www.geocod.io\/docs\/","Pricing","details",":","https",":","\/\/www.geocod.io\/pricing\/","..","versionadded",":",":","2.2"]
docstr: Try to extract an error message from the 'error' property of a JSON response.
          
docstr_tok: ["Try","to","extract","an","error","message","from","the","'error","'","property","of","a","JSON","response","."]
code: def _get_error_message(self, error):
      """Try to extract an error message from the 'error' property of a JSON response."""
      try:
          error_message = json.loads(error.text).get("error")
      except ValueError:
          error_message = None
      return error_message or error.text
  
file_path: geopy/geopy/geocoders/geocodio.py
imports: import collections.abc
  import json
  from functools import partial
  from urllib.parse import urlencode
  from geopy.adapters import AdapterHTTPError
  from geopy.exc import GeocoderQueryError, GeocoderQuotaExceeded
  from geopy.geocoders.base import DEFAULT_SENTINEL, NONE_RESULT, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 6 for calling the Geocodio obj's underlying member method code with example usage: obj._get_error_message(error) and returns: unknown