Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsDeprecatedError (0.11 sec)

  1. pkg/test/framework/errors/deprecations.go

    	return &DeprecatedError{fmt.Sprintf(format, args...)}
    }
    
    func IsDeprecatedError(err error) bool {
    	_, ok := err.(*DeprecatedError)
    	return ok
    }
    
    func IsOrContainsDeprecatedError(err error) bool {
    	if IsDeprecatedError(err) {
    		return true
    	}
    
    	if m, ok := err.(*multierror.Error); ok {
    		for _, e := range m.Errors {
    			if IsDeprecatedError(e) {
    				return true
    			}
    		}
    	}
    
    	return false
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top