You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/Synapse.Core.Infrastructure.Containers.Docker/Synapse.Core.Infrastructure.Containers.Docker.csproj
Copy file name to clipboardExpand all lines: src/core/Synapse.Core.Infrastructure.Containers.Kubernetes/Synapse.Core.Infrastructure.Containers.Kubernetes.csproj
thrownewProblemDetailsException(new(ErrorType.Communication,ErrorTitle.Communication,ErrorStatus.Communication,$"Failed to load the custom function defined at '{uri}': {ex.Message}"));
97
+
thrownewProblemDetailsException(new(ErrorType.Communication,ErrorTitle.Communication,ErrorStatus.Communication,$"Failed to load the custom function defined at '{endpoint}': {ex.Message}"));
if(components.Length!=2)thrownewException($"The specified value '{functionName}' is not a valid custom function qualified name ({{name}}:{{version}})");
114
+
varname=components[0];
115
+
varversion=components[1];
116
+
if(!SemVersion.TryParse(version,SemVersionStyles.Strict,out_))thrownewException($"The specified value '{version}' is not a valid semantic version 2.0");
if(components.Length!=2)thrownewException($"The specified value '{functionName}' is not a valid custom function qualified name ({{name}}:{{version}})");
107
-
varname=components[0];
108
-
varversion=components[1];
109
119
varfunction=awaitthis.Task.Workflow.CustomFunctions.GetAsync(name,cancellationToken).ConfigureAwait(false)??thrownewNullReferenceException($"Failed to find the specified custom function '{name}'");
110
120
returnfunction.Spec.Versions.Get(version)??thrownewNullReferenceException($"Failed to find the version '{version}' of the custom function '{name}'");
111
121
}
112
-
elsethrownewNotImplementedException("Using non-default custom function catalog is not yet implemented");//todo: implement
122
+
else
123
+
{
124
+
if(this.Task.Workflow.Definition.Use?.Catalogs?.TryGetValue(catalogName,outvarcatalog)!=true||catalog==null)thrownewNullReferenceException($"Failed to find a catalog with the specified name '{catalogName}'");
0 commit comments