def METHOD_NAME(error):
    """
    Returns the Error 'code' from an exception.
    Args:
      error: The Exception from which the error code is to be extracted.
        error will be an instance of class.base_class.
    """
    raise NotImplementedError()