NodePipeline/NodePipeline.Abstractions/Exceptions/NodeFactory/NonNullableInputRestrictsConnectionToNullableOutputException.cs
2026-01-02 20:55:25 +03:00

26 lines
1.1 KiB
C#

using System;
// ReSharper disable UnusedAutoPropertyAccessor.Global
namespace NodePipeline.Abstractions.Exceptions.NodeFactory;
public class NonNullableInputRestrictsConnectionToNullableOutputException : PipelineException
{
public NonNullableInputRestrictsConnectionToNullableOutputException(
string pipelineId, string nodeId, string nodeType, string inputPortName, string outputPortName,
string outputPortNodeId)
: base(pipelineId, Constants.Exceptions.NodeFactory.NodeParameterNotFoundException)
{
InputPortName = inputPortName ?? throw new ArgumentNullException(nameof(inputPortName));
NodeType = nodeType ?? throw new ArgumentNullException(nameof(nodeType));
OutputPortName = outputPortName ?? throw new ArgumentNullException(nameof(outputPortName));
OutputPortNodeId = outputPortNodeId;
NodeId = nodeId;
}
public string InputPortName { get; }
public string NodeType { get; }
public string OutputPortName { get; }
public string OutputPortNodeId { get; }
public string NodeId { get; }
}