code: func FromObject(obj runtime.Object) error {
  	switch t := obj.(type) {
  	case *unversioned.Status:
  		return &StatusError{*t}
  	}
  	return &UnexpectedObjectError{obj}
  }
docs: // FromObject generates an StatusError from an unversioned.Status, if that is the type of obj; otherwise,
  // returns an UnexpecteObjectError.