using System;

// ReSharper disable UnusedAutoPropertyAccessor.Global

namespace NodePipeline.Abstractions.Exceptions.NodeFactory;

public class NodeNotFoundException : PipelineException
{
    public NodeNotFoundException(string pipelineId, string nodeType, string nodeId)
        : base(pipelineId, Constants.Exceptions.NodeFactory.NodeWasNotInitializedException)
    {
        NodeType = nodeType;
        NodeId = nodeId;
    }

    public string NodeType { get; }
    public string NodeId { get; }
}

public class NodeTypeNotFoundException : Exception
{
    public NodeTypeNotFoundException(string nodeType)
        : base(Constants.Exceptions.NodeFactory.NodeWasNotInitializedException)
    {
        NodeType = nodeType;
    }

    public string NodeType { get; }
}