Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NoError (0.17 sec)

  1. cmd/api-errors.go

    		}
    	}
    
    	return apiErr
    }
    
    var noError = APIError{}
    
    // toAPIError - Converts embedded errors. Convenience
    // function written to handle all cases where we have known types of
    // errors returned by underlying layers.
    func toAPIError(ctx context.Context, err error) APIError {
    	if err == nil {
    		return noError
    	}
    
    	apiErr := errorCodes.ToAPIErr(toAPIErrorCode(ctx, err))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
Back to top