func InterpretUpdateError(err error, qualifiedResource unversioned.GroupResource, name string) error {
	switch {
	case storage.IsTestFailed(err), storage.IsNodeExist(err):
		return errors.NewConflict(qualifiedResource, name, err)
	case storage.IsUnreachable(err):
		return errors.NewServerTimeout(qualifiedResource, "update", 2) // TODO: make configurable or handled at a higher level
	case storage.IsNotFound(err):
		return errors.NewNotFound(qualifiedResource, name)
	default:
		return err
	}
}
// InterpretUpdateError converts a generic error on a update
// operation into the appropriate API error.
InterpretUpdateError converts a generic error on a update
operation into the appropriate API error.
// InterpretUpdateError converts a generic error on a update // operation into the appropriate API error .
func InterpretUpdateError(err error, qualifiedResource unversioned.GroupResource, name string) error {
	switch {
	case storage.IsTestFailed(err), storage.IsNodeExist(err):
		return errors.NewConflict(qualifiedResource, name, err)
	case storage.IsUnreachable(err):
		return errors.NewServerTimeout(qualifiedResource, "update", 2) 
	case storage.IsNotFound(err):
		return errors.NewNotFound(qualifiedResource, name)
	default:
		return err
	}
}
func InterpretUpdateError ( err error , qualifiedResource unversioned . GroupResource , name string ) error { switch { case storage . IsTestFailed ( err ) , storage . IsNodeExist ( err ) : return errors . NewConflict ( qualifiedResource , name , err ) case storage . IsUnreachable ( err ) : return errors . NewServerTimeout ( qualifiedResource , " " , 2 ) case storage . IsNotFound ( err ) : return errors . NewNotFound ( qualifiedResource , name ) default : return err } }
InterpretUpdateError converts a generic error on a update
operation into the appropriate API error.
InterpretUpdateError converts a generic error on a update operation into the appropriate API error .
// TODO: make configurable or handled at a higher level