code: def get_error_name(error):
      
      error_type = type(error)
      if error_type.__module__ in ['__main__', 'builtins']:
          return error_type.__name__
      else:
          return f'{error_type.__module__}.{error_type.__name__}'
docs: Return canonical error name as string.
  
      For builtin errors like ValueError or Exception, will return the bare
      name, like ValueError or Exception.
  
      For all other exceptions, will return modulename.errorname, such as
      arbpackage.mod.myerror
  
      Args:
          error: Exception object.
  
      Returns:
          str. Canonical error name.