code: func IsUnexpectedObjectError(err error) bool {
  	_, ok := err.(*UnexpectedObjectError)
  	return err != nil && ok
  }
docs: // IsUnexpectedObjectError determines if err is due to an unexpected object from the master.