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